Splunk Search

How do I list all active input stanzas in all apps?

andyk
Path Finder

Is it possible to get an list of all input stanzas currently configured?

I am currently looking in to performance issues on my forwarders and it would nice to be able to just get a list of the input stanzas instead of manually having to look in all input.conf files in all default and local folders in all apps and the system folder.

0 Karma
1 Solution

ziegfried
Influencer

You can execute the following command to get the effective inputs configuration:

splunk cmd btool inputs list

To just get the monitor inputs execute

splunk cmd btool inputs list monitor

To just get the stanza headers, you can do

splunk cmd btool inputs list | grep "\["

(All the examples assume you have the splunk binary in your PATH)

Btw. this works for all other configurations as well. For example query the effective props.conf:

splunk cmd btool props list

View solution in original post

ziegfried
Influencer

You can execute the following command to get the effective inputs configuration:

splunk cmd btool inputs list

To just get the monitor inputs execute

splunk cmd btool inputs list monitor

To just get the stanza headers, you can do

splunk cmd btool inputs list | grep "\["

(All the examples assume you have the splunk binary in your PATH)

Btw. this works for all other configurations as well. For example query the effective props.conf:

splunk cmd btool props list
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...