sipcapture / hepipe.js

Pipe arbitrary data rows (logs, events, cdrs, esl, etc) to HEP Server (HOMER)
http://sipcapture.org
MIT License
25 stars 17 forks source link

the web ui is display log data #30

Open CollectBugs opened 2 years ago

CollectBugs commented 2 years ago

my config.js as follows:

var config = { hep_config: { debug: true, HEP_SERVER: '192.168.16.133', HEP_PORT: 9060 }, esl_config: { debug: true, ESL_SERVER: '192.168.16.133', ESL_PORT: 8021, ESL_PASS: 'ClueCon', HEP_PASS: 'multipass', HEP_ID: 2222, report_call_events: true, report_rtcp_events: true, report_qos_events: true }, logs_config: { debug: true, HEP_PASS: 'multipass', HEP_ID: 2222, logs: [ { tag : 'opus_decoder', host : '192.168.16.133', pattern:'^([^ ]) .', path : '/usr/local/freeswitch/log/freeswitch.log' } ] }

};

### the logs is : Press CTRL-C to Exit... [Wed Sep 07 2022 15:34:36 GMT+0800 (中国标准时间)] Watching '/usr/local/freeswitch/log/freeswitch.log' (1925996) Processing pattern [^([^ ]) .]

but ,the web ui is display freeswtich.log

lmangani commented 2 years ago

I do not understand. Could you provide a more detailed description of the expected vs. current results?

CollectBugs commented 2 years ago

I do not understand. Could you provide a more detailed description of the expected vs. current results?

issue:On the Web console page(homer),log(freeswtich) are not displayed, Only other logs (esl)are displayed image

lmangani commented 2 years ago

Thanks for the clarification. If the file is not reading any data, please set heppipe.js DEBUG mode and paste any errors you notice during initialization or adjust the filtering. Make sure permissions allow the node process to read that file, and also make sure your regex pattern returns anything on a few samples. If you want all rows, simplify it.

CollectBugs commented 2 years ago

Thanks for the clarification. If the file is not reading any data, please set heppipe.js DEBUG mode and paste any errors you notice during initialization or adjust the filtering. Make sure permissions allow the node process to read that file, and also make sure your regex pattern returns anything on a few samples. If you want all rows, simplify it.

1.Allow the node process to read that file 2.my regex pattern can return anything

Log as follows image

lmangani commented 2 years ago
CollectBugs commented 2 years ago

1.timestamps are right,because,the HEP logs can show 2.Not found PaStash can be used instead?

lmangani commented 2 years ago

Please check if any HEP freeswitch log is ever emitted, I can't help you without seeing what the application does.

Yes, paStash should support ESL as well as file reading just fine with an HEP output set to logs only (type 100) There are examples in the wiki you can assemble into the desired solution.

CollectBugs commented 2 years ago

Please check if any HEP freeswitch log is ever emitted, I can't help you without seeing what the application does.

Yes, paStash should support ESL as well as file reading just fine with an HEP output set to logs only (type 100) There are examples in the wiki you can assemble into the desired solution.

thank you What does HEP_ID stand for ? What does HEP_PASS stand for?

lmangani commented 2 years ago

@CollectBugs those are not used by HOMER so you can ignore them.

CollectBugs commented 2 years ago

@CollectBugs those are not used by HOMER so you can ignore them.

thank you

Please check if any HEP freeswitch log is ever emitted, I can't help you without seeing what the application does.

Yes, paStash should support ESL as well as file reading just fine with an HEP output set to logs only (type 100) There are examples in the wiki you can assemble into the desired solution. Hi ! image

Please check if any HEP freeswitch log is ever emitted, I can't help you without seeing what the application does.

Yes, paStash should support ESL as well as file reading just fine with an HEP output set to logs only (type 100) There are examples in the wiki you can assemble into the desired solution.

Hi! In the paStash,Freeswitch event, log, RTP description not obtained can you share me a link about paStash、freeswtich

CollectBugs commented 2 years ago

Please check if any HEP freeswitch log is ever emitted, I can't help you without seeing what the application does.

Yes, paStash should support ESL as well as file reading just fine with an HEP output set to logs only (type 100) There are examples in the wiki you can assemble into the desired solution.

Please check if any HEP freeswitch log is ever emitted, I can't help you without seeing what the application does.

Yes, paStash should support ESL as well as file reading just fine with an HEP output set to logs only (type 100) There are examples in the wiki you can assemble into the desired solution.

hello! I looked at the js log and it showed that the sending was successful. But the web query can't be found. I looked at the heplify log and no error was reported. Do you know how to connect the database and query the data?