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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...