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!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...