All Apps and Add-ons

How to use $HOSTNAME Linux environment variables in forwarder's inputs.conf to identify servers by hostname?

ivangutev
Engager

Hello,

I am trying to use the $HOSTNAME Linux environment variable in inputs.conf of splunkforwarder, because I would like to identify servers by hostname. I wonder is that possible and how, because I have tried already to set a HOST variable and to pass the content into host = $(HOST)-webserver but somehow that is not working.

Can you help me please?

Thanks,
Ivan

0 Karma
1 Solution

ivangutev
Engager

I found a solution. If I do not set the host in inputs.conf, it will use the hostname of the server and therefore I can identify it this way.

View solution in original post

0 Karma

ivangutev
Engager

I found a solution. If I do not set the host in inputs.conf, it will use the hostname of the server and therefore I can identify it this way.

0 Karma
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 ...