Splunk Enterprise

set filename as host

indeed_2000
Motivator

Hi
I have log file that copy on splunk server every day with below structure:


/data/appserver/ACC/20200617/log.customer1.20200617.bz2
/data/appserver/ACC/20200617/log.customer2.20200617.bz2
/data/appserver/ACC/20200617/log.cus1.20200617.bz2
/data/appserver/ACC/20200617/log.cus2.20200617.bz2
/data/appserver/ACC/20200617/log.cus3.20200617.bz2


now I want splunk consider everything between two dots as host name, like this:
customer1
customer2
cus1
cus2
cus3

I try to do this throgh web ui and "Set host" = "5" :
settings > datainputs > Files & Directories > /data/appserver/ACC/


is this correct? i mean splunk consider 5's part of address?

 

Thanks

Labels (1)
0 Karma

to4kawa
Ultra Champion
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...