Splunk Search

extract _raw to field

rahulsingh336
New Member

Team,
When I search for particular sourcetype, source and index I want to have one interesting field may be called as msg and value should be whole _raw message.
How can I achieve this via configuration?
Please help.

0 Karma
1 Solution

DMohn
Motivator

Add or modify the props.conf stanza for your sourcetype like this:

 [yoursourcetype]
 EXTRACT-complete-raw = ^(?P<msg>.*)$

This will add a field msg during search time containing the whole event text.

View solution in original post

0 Karma

DMohn
Motivator

Add or modify the props.conf stanza for your sourcetype like this:

 [yoursourcetype]
 EXTRACT-complete-raw = ^(?P<msg>.*)$

This will add a field msg during search time containing the whole event text.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...