Getting Data In

dynamic host name

eidil
Explorer

My previous team has set a static host name in the input.conf. I am currently trying to make the IP as the host name. I had tried using host_segment=3 and it did not work. Any suggestions?

[default]
host = IDSPGASPVLOGP01

[monitor:///opt/syslog/172.16.43.126/*/*/*]
disabled = 0
sourcetype = cisco:ios
interval = 30

[monitor:///opt/syslog/172.16.63.77/*/*/*]
disabled = 0
sourcetype = cisco:ios
interval = 30

[monitor:///opt/syslog/172.16.43.30/*/*/*]
disabled = 0
sourcetype = cisco:ios
interval = 30

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

When your files are  named e.g. /opt/syslog/172.16.43.126/net/Cisco/router.log then your monitor should match these and also that host_segment = 3 should work.

What btool shows for inputs?

Can you try the next (just replace those multiple with this)

[monitor:///opt/syslog/172.*/*/*/*]
host_segment = 3
disabled = 0
sourcetype = cisco:ios
interval = 30

 r. Ismo

0 Karma

to4kawa
Ultra Champion

How about INGEST_EVAL with extracting from source?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...