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)"
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)"
Thanks ziegfried!