Getting Data In

Host value not being used as set during ingestion

termcap
Path Finder

Hi All,

I have set up a continuous monitor of the /var/log directory and set the host to "vps"

getdata1.PNGgetdata2.PNG

Now when I am searching the oslogs index, I'm expecting all the logs to have the host value to be set as "vps" but that is not the case, instead of having one host "vps" I have two hosts "vps" and "ip-172-31-17-23" which is the hostname of my machine.  There is no additional input for the oslogs index, this is the only one that I've set.

 

getdata3.PNG

 

What explains this anomaly and how can this be rectified ?

Thanks.

Labels (5)
0 Karma
1 Solution

venkatasri
SplunkTrust
SplunkTrust

Hi,

Since you are using a default sourcetype syslog which comes with default configuration to extract a host from _raw data.

[syslog]
pulldown_type = true
maxDist = 3
TIME_FORMAT = %b %d %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 32
TRANSFORMS = syslog-host
REPORT-syslog = syslog-extractions
SHOULD_LINEMERGE = False
category = Operating System
description = Output produced by many syslog daemons, as described in RFC3164 by the IETF

Path of default config - /opt/splunk/etc/system/default/props.conf

-------------------------------------

An upvote would be appreciated if it helps!

View solution in original post

0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi,

Since you are using a default sourcetype syslog which comes with default configuration to extract a host from _raw data.

[syslog]
pulldown_type = true
maxDist = 3
TIME_FORMAT = %b %d %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 32
TRANSFORMS = syslog-host
REPORT-syslog = syslog-extractions
SHOULD_LINEMERGE = False
category = Operating System
description = Output produced by many syslog daemons, as described in RFC3164 by the IETF

Path of default config - /opt/splunk/etc/system/default/props.conf

-------------------------------------

An upvote would be appreciated if it helps!

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...