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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...