-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Help wanted on filter #230
Comments
Hi @lmangani just for test, if i use what suggested:
output is following:
If I just use:
output is: I don't understand how this filter works. I would have expected that in first case output was something like:
and so on.. Am I wrong? |
You need to define all columns to begin with |
Hi, changed approach and use GROK filter. For whom should be interested on it here GROk match pattern to analyze SDR logs coming from Audiocodes SBC:
|
Perhaps we can add this to the Wiki page for the SBC alongside any other nodes? |
@lmangani for sure! Could be useful for someone else |
I am trying to use "eval" plugin to make simple opration because data "TimeToConnect" and "CallDuration" comes in centiseconds.
but i get following error:
What that means? What Am I wrong? maybe module's issue? |
Docs updated to clarify usage:
|
@lmangani it now works!! ;-) |
UPDATED Filter to add to Wiki:
|
Could you perhaps provide the full recipe including the "other side" of the config for the SBC sending? |
I'm reviving this post because I'm encountering a strange behavior of the grok filter. instead the pastash one is like this:
Filter grok pattern:
In practice, and this is what I don't understand, it doubles the value of "GWAPP_NORMAL_CALL_CLEAR" and "BYE". |
@lmangani can you please point me how to troubleshoot this strange behavior? Is there a way to know what grok filter is going to do when it parses input? |
Is it always the same field/column showing this odd behaviour? |
Seams yes. |
are you postitive those fields do not contain some special characters or some weird term? if you pipe the same object manually, does the same error reproduce or does it only happen for streamed CDRs? |
I didn't tried with manual injection. |
Tried to pipe manually (filling a local file and modifying input) but same weird behaviour. Used: and injected following:
|
@spady7 thats not what i meant. Using the same file will bring the same issue. Please input as stdin and paste the object making sure it contains no special characters (ie: copy to a blank doc, and paste from the doc rather than the original) |
@lmangani found issue. Pattern causing issue: Pattern that work fine in paStash: paStash seams not accept the "OR" condition. |
That's interesting! Thanks for sharing this important bit - I'll take a look at the library and see if we can provide this as well. |
Hello everyone. I am in the condition of receiving the CDR from a syslog (SBC). The point is that the SBC does not send me the headers, but only the data. Is it possible to use the "pastash" filters to create a sort of association to then send to "qryn"?
The data I get is this:
<181>[S=3] |STOP |Mediant SW |179 |62 |81a539:179:232 |16:51:54.608 UTC Tue Aug 20 2024|183 |309 |UTC |2000 |2000 |1000 |1000 |192.168.10.1 |192.168.10.1 |GWAPP_NORMAL_CALL_CLEAR |BYE |Telecom |Telecom |0
and its respective header (which is not sent to me) would be:
|RecordType |ProductName |ShelfInfo|SeqNum |SessionId |SetupTime |TimeToConnect |CallDuration |TimeZone|IngressCallingUser |EgressCallingUser |IngressDialedUser |EgressCalledUser |IngressCallSourceIp |EgressCallDestIp |EgressTrmReason |EgressSIPTrmReason |IngressSipInterfaceName |EgressSipInterfaceName |RouteAttemptNum
Thank you in advance
The text was updated successfully, but these errors were encountered: