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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...