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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...