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!

Cloud Platform | Customer Change Announcement: Email Notification Will Be Available ...

The Notification Team is migrating our email service provider from Postmark to AWS Simple Email ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...