Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the web ui is display log data #30

Open
CollectBugs opened this issue Sep 7, 2022 · 11 comments
Open

the web ui is display log data #30

CollectBugs opened this issue Sep 7, 2022 · 11 comments

Comments

@CollectBugs
Copy link

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
Copy link
Member

lmangani commented Sep 7, 2022

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

@CollectBugs
Copy link
Author

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
Copy link
Member

lmangani commented Sep 7, 2022

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
Copy link
Author

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
Copy link
Member

lmangani commented Sep 7, 2022

  • Are the timestamps correct? that would cause the logs not to show.
  • Did you perform any raw query into the LOGS partition to see if freeswitch logs are found?
  • This script is very old and phased out - unless you are interested in patching it and updating it, you might want to consider using paStash instead which supports file input, ESL input and many others in a programmable way.

@CollectBugs
Copy link
Author

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

@lmangani
Copy link
Member

lmangani commented Sep 7, 2022

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
Copy link
Author

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
Copy link
Member

lmangani commented Sep 7, 2022

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

@CollectBugs
Copy link
Author

@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
Copy link
Author

CollectBugs commented Sep 8, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants