Replies: 11 comments 13 replies
-
Welcome to the community @myrcinos Audiocodes logs are not smart and need lots of correlation hacks. Are you using the dedicated plugin or writing your own? |
Beta Was this translation helpful? Give feedback.
-
Hi, I decided to work on something easier. Instead of AudioCodes logs now I am trying to find a good config for Ribbon SBC logs. I don't know why but Ribbon SBC app did not work for me :( So, here is my recipe:
This is what I get in Stdout{} (I replaced Public IP addresses and phone numbers with text string).
What am I doing wrong? I can't see anything in Homer. |
Beta Was this translation helpful? Give feedback.
-
Hey @lmangani
When I run paStash with this config, I get stdout{} similar to the below (I replaced some public IP addresses with placeholders):
Unfortunately it is not showing in Homer 7. Can you help me? |
Beta Was this translation helpful? Give feedback.
-
The payload needs to be a standard SIP message, not a log line. The rest seems generally OK |
Beta Was this translation helpful? Give feedback.
-
That's exactly what our plugin does. It parses out the message AND the fields to form a proper payload and rcinfo set. You can transform the payload field with a further regex to only match from the beginning of the SIP message until the end, assuming all messages are integral which is often NOT the case with large SDP payloads where messages could get fragmented. Using the plugin would make all these efforts unecessary so I'd suggest understanding why it didn't run and/or patching the plugin code if there are issues with it and the format you're receiving. |
Beta Was this translation helpful? Give feedback.
-
Point taken! Is there any debug/troubleshooting/log option that I could use to understand why the plugin didn't work in the first instance? Would it work if my payload was like the below?
|
Beta Was this translation helpful? Give feedback.
-
@myrcinos absolutely as long as all the newlines are preserved it should be parsed just fine. please show us the final output object to confirm |
Beta Was this translation helpful? Give feedback.
-
@lmangani Hey Lorenzo, could you point me Github link for the latest version of Sonus App plugin or a command how to install it properly? I can't find it, I am sure I had this bookmarked but now I can't find it :( |
Beta Was this translation helpful? Give feedback.
-
@myrcinos I don't own any such equipment so I guess it might change between them. my suggestion would be to fork and PR the changes for your SBC model and we can add a "type" switch to select the regex for the right model, etc as we do for other vendors |
Beta Was this translation helpful? Give feedback.
-
I won't be able to modify the code since I do not know the input or what the differences might be. So you'd have to fix the IN/OUT regexes to match your actual messages and once you have those rules sound fire in a PR or issue and we can do the rest easily together. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@myrcinos no worries! the regex filters you see were developed with regex101 😄 all you need is a few good examples and some patience. I'll help with the rest. |
Beta Was this translation helpful? Give feedback.
-
Hi,
This my first post and I hope it is in the right section.
I read everything I could and still can't find the answer.
I have installed Homer 7 in Docker and I have been trying to deliver logs from AudioCodes SBC to Homer via paStash. So far, I could configure paStash to receive logs from AudioCodes and do some basic Regex (based on what I found on the Internet). I can see that paStash is sending logs (confirmed using Wireshark) but they do not appear in Homer. I suspect, the format of the logs is incorrect and for that reason Homer does not display them. I know how to use regEx, Grok etc to manipulate the logs but my problem is that I don't know what Homer needs.
For example, when I use hepgen.js to test Homer installation, I can see that hepgen.js sends nicely formatted json logs, all fields have names etc. Do I need the same format with my logs or is there just a shorter list of mandatory mappings and the remaining data Homer will parse automatically? Any help would be appreciated.
P.S I also tried to find information on HEP format but with no luck.
Beta Was this translation helpful? Give feedback.
All reactions