Getting Data In

Can I reference $SPLUNK_HOME in an inputs.conf or props.conf stanza?

dbryan
Path Finder

I want to do something like this:

# inputs.conf
[monitor://$SPLUNK_HOME/etc/apps/myapp/tmp]

And/or:

# props.conf
[source::$SPLUNK_HOME/etc/apps/myapp/tmp/*.log]

Is this possible?

It's basically so that an app does not have to be aware of its location on the filesystem, and so that I can run many instances of Splunk with the app installed on a single system without them stepping upon each other.

Tags (2)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

The former will work (inputs.conf monitor stanza header) but the latter will not (props.conf). However, you shouldn't really need the one in props.conf, as you can certainly just match the end of the filename pattern ([source::.../etc/apps/myapp/tmp/*.log]), or better yet, assign your files a sourcetype in the input and use that to set properties.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...