Dashboards & Visualizations

Extract vector in a field

marco_massari11
Communicator

Hi,

in my logs I have a field named report that contains a lot of informations:

Report=Windows Failed\\Passed_Conditions[]:Failed_Conditions[antivirus_update]:Skipped_Conditions[])\,MACAddress=XXXXXXXXXX\,Framed-IP-Address=XXXXX\.

 

What I need is only the Failed_Conditions vector, so the content between []. The content could be different so I think I need a regex.

 

Thank you in advance!!

Labels (2)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

@marco_massari11, please try below regex

| rex field=Report "Failed_Conditions\[(?<Failed_Conditions>[^\]]+)"

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

@marco_massari11, please try below regex

| rex field=Report "Failed_Conditions\[(?<Failed_Conditions>[^\]]+)"

If this reply helps you an upvote and "Accept as Solution" is appreciated.
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...