Getting Data In

Display which index associated with which monitor?

standias
Explorer

Hi ,

How do I know which index is associated with which monitor if I dont have splunk web enabled e.g splunk light forwarder?In web can see this under monitor file section.

Is there any CLI command for this? splunk list monitor only shows which files are monitored.

Tags (2)
0 Karma
1 Solution

ziegfried
Influencer

You can use the btool command to generate the list.

splunk cmd btool list monitor

lists all configured monitors and their configured options.

If you're on linux, you could use the following command to generate list that contains only the monitor and the associated index:

splunk cmd btool inputs list monitor | grep -P "^(\[|index)"

View solution in original post

ziegfried
Influencer

You can use the btool command to generate the list.

splunk cmd btool list monitor

lists all configured monitors and their configured options.

If you're on linux, you could use the following command to generate list that contains only the monitor and the associated index:

splunk cmd btool inputs list monitor | grep -P "^(\[|index)"

standias
Explorer

Thanks ziegfried!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...