Getting Data In

getting host from file name?

a212830
Champion

Hi,

I have a bunch of files within a directory that I am monitoring. The host is not contained within the data, but rather is part of the file name. (hostname.cpuinfo.txt, hostname.proxyinfo.txt...)Is there anyway to tell splunk to programmatically pick up this information?

Tags (2)
0 Karma
1 Solution

sdaniels
Splunk Employee
Splunk Employee

a212830
Champion

Thanks! That did it. I used the host_segment parameter.

0 Karma
Get Updates on the Splunk Community!

Faster Insights with AI, Streamlined Cloud-Native Operations, and More New Lantern ...

Splunk Lantern is a Splunk customer success center that provides practical guidance from Splunk experts on key ...

Splunk Enterprise Security: Your Command Center for PCI DSS Compliance

Every security professional knows the drill. The PCI DSS audit is approaching, and suddenly everyone's asking ...

Developer Spotlight with Guilhem Marchand

From Splunk Engineer to Founder: The Journey Behind TrackMe    After spending over 12 years working full time ...