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
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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