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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...