Getting Data In

Is there a Splunk Segment setting for sourcetype, similar to host_segment=x in inputs.conf?

daniel333
Builder

Splunk 6.3

I am looking at the feature host_segment=x in inputs.conf. And wondering if there is a similar feature for source type?

For example, I have a directory of logs on the network for a series of servers that look like this

/NFS/mounts/Servername/sourcetype/thefiles.txt

I'd like to just set this, but that doesn't seem to work. Any trick to this? Or work around?

[monitor:////nfs/mounts/*/*/*]
host_segment=3
sourcetype_segment=4
disable=0
Tags (2)
0 Karma

esix_splunk
Splunk Employee
Splunk Employee

No, this doesnt exists. You could set a sourcetype based on the source of the file in transforms.conf, upstream at indextime or HF layer.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...