- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ivangutev
Engager
10-27-2014
09:09 AM
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
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ivangutev
Engager
10-27-2014
10:56 AM
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.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ivangutev
Engager
10-27-2014
10:56 AM
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.
