Getting Data In

hostname override

lisaac
Path Finder

I have a file that is being auto sourcetyped as syslog, and the file is read by a splunk agent. An example follows:

Oct 9 04:06:58 be1 recurrenceengine[14027]: _ [OK]|20111009040658|{xxxxxxxx-xxxxx-xxxxx-xxxxxx-xxxxxxxxx}|Recurrence Engine loop complete.

This is fine, but the hostname is being set as be1. I would like the hostname to assume the name of the current splunkforwarder hostname. Any suggestions on how to best accomplish this item?

Tags (1)
0 Karma

kristian_kolb
Ultra Champion

I believe that this is the default behaviour for the syslog sourcetype. If the sourcetype is set to syslog, the forwarder will look inside each event to find and set the host value.

Rather than changing the behaviour of splunk, it is probably easier to change your sourcetype to zyzlog or some other arbitrary name. Then the host value set in the forwarder's inputs.conf will be used, if set.

hth,

Kristian

0 Karma

lisaac
Path Finder

The data is being send to the Indexer via a Splunk forwarder. The forwarder is reading a local file.

0 Karma

kdenton
Path Finder

How is the data being sent to splunk?

Syslog - Port 514 or Splunk forwarder

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...