QueueMetrics forum

QueueMetrics => MySQL storage and Qloaderd/Uniloader => Topic started by: chesstrian on May 14, 2013, 22:33:08

Title: Asterisk queue_log file into DB with Node JS.
Post by: chesstrian on May 14, 2013, 22:33:08
I have programed a little script in Node JS which gather every line from queue_log file and put it into MongoDB; it haven't been tested with log rotation and needs support for MySQL and others DBs, if you have any comment or improvement, it will be appreciated.

It would be great if this is useful for someone.

You can check for sources here: https://github.com/chesstrian/qlog2db
Title: Re: Asterisk queue_log file into DB with Node JS.
Post by: QueueMetrics on May 16, 2013, 09:39:13
Can we link to it from our OpenQm Addons page?

PS: why did you create it?
Title: Re: Asterisk queue_log file into DB with Node JS.
Post by: chesstrian on May 17, 2013, 18:41:13
Of course you can link, modify and do whatever you need :).

I did it as an exercise, because I like Asterisk and NodeJS for realtime applications, i'm doing a monitor based on queue_log file, so that was the beginning.
Title: Re: Asterisk queue_log file into DB with Node JS.
Post by: QueueMetrics on May 21, 2013, 15:10:41
Thanks!
Title: Re: Asterisk queue_log file into DB with Node JS.
Post by: Wessel on October 29, 2015, 23:59:36
Thank you! Just what i was looking for. Did you also manage to intreptert the calls with an aggregate? I'll have a go for that now if i cant find it on the net. I think its worth creating :-)