Getting Data In

Many indexes for many hosts? (no hostname in the logs)

Cesaredf
Explorer

Hi all,

I have a doubt about which can be the best practice about indexing if:

  • I have several splunk client forwarding to the same splunk server the same logs folder. Each night the logs are updated but no logs contain the host name to distinguish among them.

Now my doubt/question is: should I use different indexes per hosts? in such a case a could use different clones of the same app on each host right?

Does anybody has a better how-to or best practice?

Many thanks in advance Cdf.

Tags (1)
0 Karma

satishsdange
Builder

You can mention hostname in inputs.conf as shown below -

[default]
host = cisco_router1

[monitor:///opt/log/cisco_router1/cisco_ironport_web.log]

So that whenever indexer receives data from UF, it will have hostname.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...