Splunk Search

Can I use environemnt variable as host in inputs.conf of forwarder ?

parth_jec
Path Finder

Is it possible in inputs.conf in windows machine to use

host=$

I tried using:
host=$computername

but in the indexer the events show 'host=$computername' and not the value of $computername

Tags (3)

eyen
New Member

host = $COMPUTERNAME worked for me on the Windows Splunk 5.0.4 Universal Forwarder.

0 Karma
Get Updates on the Splunk Community!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...