Splunk Search

Need Help in regex expression

rkishoreqa
Communicator

Hi team, 

 

I need to fetch the 'InterfaceName' from the below payload.  I built a regular expression but it is not working as expression. Can someone please verify this and correct me where I am wrong. 

"xmlns:bw":"http://www.tibco.com"
"ns:InterfaceName":"MIAP-COVGBA",
"ns:CorrelationID":"f84nvkdwe-4ij43kj"

I created one regex expression like - | rex field=_raw "ns:InterfaceName\W+(?<AppId>\w+)" |stats count by AppId.  

From the above expression I am getting only double quotes ("), but unable to fetch data. 

 

Thanks in advance.

 

yours,

...

 

 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Here's an alternative regex to try.

ns:InterfaceName\\\":\\\"(?<AppId>[^\\\"]+)
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Here's an alternative regex to try.

ns:InterfaceName\\\":\\\"(?<AppId>[^\\\"]+)
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf24, and Community Connections

Thank you to everyone in the Splunk Community who joined us for .conf24 – starting with Splunk University and ...

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...