Splunk Search

How do I extract these fields from Avaya CDR logs that are currently missing from search results?

kgangulw
Engager

Hello,

We have avaya phones in our environment and logs are being populated to Splunk. We need to get some basic reports from the log data, but even after reading many online resources, I'm unable to work out what's needed to get this working.

Currently when I run a search below is the output. However, I need to make a visual representation based on certain fields which do not show up in the standard field list.

Could someone pls help out? I have made the fields of interest in Bold.

Dec 11 09:16:44 V7205-RSP-L2 stm[3912]: <503293> <INFO> <V7205-RSP-L2 100.220.100.4> |voice| VM: CDR generated for client IP:120.202.62.128 Name:1467 ALG:H323 Dir:IC Peer Party:- Status:SUCC Dur:17 Orig time:Dec 11 09:16:27 2015 R-value:93 Reason:Terminated Codec: Band:GREEN Setup Time:0 Re-Assoc:0 Initial-BSSID:00:00:00:00:00:00 Initial-ESSID: Initial-AP Name:

The fields highlighted in bold do not appear in the standard field list and I tried the field extraction method, but still couldn't get that to work either. thanks

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

This rex command will extract the fields you specified. If you need other fields, it's fairly simple to add them to the regex.

... | rex "client IP:(?P<clientIP>[^ ]+).*Status:(?P<Status>\w+).*Reason:(?P<Reason>\w+).*Band:(?P<Band>\w+)" | ...

You can also put this regex string into the field extractor to have the fields extracted automatically.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

This rex command will extract the fields you specified. If you need other fields, it's fairly simple to add them to the regex.

... | rex "client IP:(?P<clientIP>[^ ]+).*Status:(?P<Status>\w+).*Reason:(?P<Reason>\w+).*Band:(?P<Band>\w+)" | ...

You can also put this regex string into the field extractor to have the fields extracted automatically.

---
If this reply helps you, Karma would be appreciated.
0 Karma

kgangulw
Engager

Thank you for the quick reply. much appreciated.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...