Splunk Search

extracting fields field name: field value

mcbradford
Contributor

Is there a simple way to have splunk assign field names based on ":"? For example, Splunk does a good job of picking up the field name if the format is...

myfield=testvalue

I have the following tyoe of log entry and I want to report on the fields. I do not want to define/extract each field.

Event message: A configuration error has occurred.

Event time: 2/12/2013 4:08:20 PM

Event time (UTC): 2/12/2013 9:08:20 PM

Event ID: e60329dcbe45472593eba4629aa020ae

Event sequence: 84

Event occurrence: 3

Event detail code: 0

Application information:

Application domain: /dadadadadad
Trust level: Full

Application Virtual Path: /

Application Path: D:\Web\dadadada\
Tags (1)
0 Karma

Ayn
Legend

Something like this should do it.

In props.conf

[yoursourcetype]
REPORT-cextract = extractdelimitedfields

In transforms.conf

[extractdelimitedfields]
REGEX = (?m)^([^:]+): (.+?)$
FORMAT = $1::$2

mcbradford
Contributor

When I added the information above, I ended up with a field that contained basically all the information within the event???? The field name was so long, I could not read it.

props.conf

[WinEventLog:Application]
REPORT-cextract = extractdelimitedfields

transforms.conf

[extractdelimitedfields]
REGEX = (?m)^([^:]+): (.+?)$
FORMAT = $1::$2

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!

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...

Splunk Developers: Construct Your Future at the .conf26 Builder Bar

Calling all Splunk architects, platform admins, and app developers: the site is open, and the blueprints are ...

Quick connection discovery mode for forwarders

When a Splunk forwarder loses connectivity to its indexers, it does not always reconnect immediately. In many ...