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 (3)
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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...