Splunk Search

Extracting Logs at Whitespace

_gkollias
Builder

Right now, I have a name=value|name=value| format for some logs.

But one problem is the Splunk auto-extract for that data stops working at white-space when there's no quotes around the data

For example, the field Message:

For one of the Failures, Message should equal "Message=Failed to deploy configurations to aliases [CITST:serverName,CITST:serverName,CITST:serverName,]"

But when I see it in results I just have Message=Failed. There's way to do it in the search, but defining some props for that would help out.

Does anyone know what I could add to my props.conf to make this successful?

Thank you!

Tags (2)
0 Karma
1 Solution

okrabbe_splunk
Splunk Employee
Splunk Employee

There are many different ways to do this. You could edit props.conf and defint an EXTRACT for the sourcetype to manually extract the field.

Probably the easiest though would be to try to first use the Splunk web UI to do the field extraction.

http://docs.splunk.com/Documentation/Splunk/6.0.1/Knowledge/Managesearch-timefieldextractions

View solution in original post

okrabbe_splunk
Splunk Employee
Splunk Employee

There are many different ways to do this. You could edit props.conf and defint an EXTRACT for the sourcetype to manually extract the field.

Probably the easiest though would be to try to first use the Splunk web UI to do the field extraction.

http://docs.splunk.com/Documentation/Splunk/6.0.1/Knowledge/Managesearch-timefieldextractions

_gkollias
Builder

Awesome I'll try it out. Thank you very much for your help!

0 Karma

okrabbe_splunk
Splunk Employee
Splunk Employee

Yup. You do not want anyway whitespace between extract and eisci.

something like:
EXTRACT-eisci = message="(?[^"]+)"

You may need to restart after you update this.

_gkollias
Builder

so do something like

EXTRACT - eisci = ?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Implementing Zero Trust (ZT) across complex environments often falters at the very beginning due to a ...