Getting Data In

host_segment being overridden

tlmayes
Contributor

I am using the following in a configuration being distributed to several remote syslog servers.  Works as expected on all UF's, except 1.  From a single UF's, the 'host' field in the indexed events is being reported as "PaloAlto" instead of the 4th segment as expected? 

I searched through all of the .conf files on the UF manually and used BTOOL looking for a missed "host_segment" entry or something hidden in another config that would cause this, none found. 

Am I am missing something obvious to the rest of you?

 

 

 

[monitor:///app01/logs/ASA]
whitelist = .+\.log$
host_segment = 4
index = syn_netfw
sourcetype = cisco:asa
ignoreOlderThan = 2d
disabled = 0

[monitor:///app01/logs/PaloAlto]
whitelist = .+\.log$
host_segment = 4
index = syn_netfw
sourcetype = pan:log
ignoreOlderThan = 2d
disabled = 0

 

 

 

Labels (1)

tlmayes
Contributor

My mystery continues.  On the UF causing the problem.  Restatement:  Collecting PaloAlto logs from multiple UF's, all via distributed inputs.conf below.  (1) UF however is reporting the host as PaloAlto.  Searched through all ./apps/* for possible conf that was overwriting of host_segment and none found. 

Final test, changed target directory AND inputs.conf below from */logs/PaloAlto to */logs/PA using a name that would not have been used in any transforms, etc.  Rules out any offending and hidden renaming of host.

Outcome, the events now show host=PA, even though 'host_segment = 4'

 

[monitor:///app01/logs/ASA]
whitelist = .+\.log$
host_segment = 4
index = syn_netfw
sourcetype = cisco:asa
ignoreOlderThan = 2d
disabled = 0

[monitor:///app01/logs/PaloAlto]
whitelist = .+\.log$
host_segment = 4
index = syn_netfw
sourcetype = pan:log
ignoreOlderThan = 2d
disabled = 0

 

0 Karma

tlmayes
Contributor

Thanks.  All data passes directly from the UF to the Indexers.  Same process on 4 UF's, but one acting weird 🙄

 

0 Karma

tlmayes
Contributor

Sourcetype assignment is distributed as an app from the DS to all UF's, so is 100% identical on all UF's.  

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Are you sure that Palo sends the logs in the format you're expecting? Some solutions name their log sending "syslog" but send something that doesn't conform to any standards.

0 Karma

tlmayes
Contributor

Thanks.  Will have to start eliminating Apps until this problem resolves

0 Karma

somesoni2
Revered Legend

Is the sourcetype assignment correct on the 1 UF?

The host value can be overridden during Event parsing on HF/Indexer, so you may want to check if some TRANSFORM is applied to that sourcetype.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...