Splunk Enterprise

Unable to configure "message" search index in Splunkforwarder

subramanianers
Loves-to-Learn Lots

I have a splunk forwarder setup in my server to forward all my logs to Splunk. I could not find a default message field in Splunk search. I would like the log string to be part of a specific field - 'message'. So, I decided to configure it in the splunk forwarder settings as follows:

#/opt/splunkforwarder/etc/system/local/transforms.conf

[message-transform]
REGEX = *
FORMAT = message::"$1"
WRITE_META = true

#/opt/splunkforwarder/etc/system/local/props.conf

[host::*]
TRANSFORMS-message = message-transform

#/opt/splunkforwarder/etc/system/local/fields.conf

[message]
INDEXED=true

But even with this configuration, I am not seeing the message field in my Splunk search. Am I missing anything?

Labels (1)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @subramanianers,

Is your "splunkforwarder" full instance?

transforms.conf and props.conf must be either on Heavy Forwarder or on Indexers.

fields.conf must be on your Search Head.

Please check if they are in correct places.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The REGEX setting is not a valid regular expression.  I believe you want REGEX = .*

These settings are about the same as the built-in field _raw.

---
If this reply helps you, Karma would be appreciated.
0 Karma

subramanianers
Loves-to-Learn Lots

It did not work @richgalloway. I understand that it is the same as _raw, but I want the log in "message" field. Is there some other configuration change that has to be made? 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Another option is REGEX = [\s\S]+

Or change the source to produce a message field.

Or add FIELDALIAS-message = _raw asnew message to props.conf.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...

What's New in Splunk Cloud Platform 9.2.2406?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2406 with many ...

Enterprise Security Content Update (ESCU) | New Releases

In August, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...