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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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