Splunk Enterprise

Using btool to find an index in a monitor stanza

joe06031990
Communicator

Hi, 

I am trying to use btool to find an index that is used in an inputs.conf:

./splunk btool inputs list --debug | grep "indexname"

However I get nothing back, am I doing something wrong?

 

Thanks,

 

  • Joe 

 

Labels (3)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Assuming "indexname" is a placeholder for the name of index sought, then the syntax is correct.  It's possible the index name is not specified in any inputs.conf file.  Also, if the Splunk instance does not perform inputs then there may be no inputs.conf files for btool to display.

If you run Splunk on Linux and you have access to the CLI then the OS may be able to find the file.  Run this command on your Deployment Server and SHC Deployer (or standalone instance, if that's all you have).

find /opt/splunk/etc -name inputs.conf -print0 | xargs -r0 grep "indexname"

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Assuming "indexname" is a placeholder for the name of index sought, then the syntax is correct.  It's possible the index name is not specified in any inputs.conf file.  Also, if the Splunk instance does not perform inputs then there may be no inputs.conf files for btool to display.

If you run Splunk on Linux and you have access to the CLI then the OS may be able to find the file.  Run this command on your Deployment Server and SHC Deployer (or standalone instance, if that's all you have).

find /opt/splunk/etc -name inputs.conf -print0 | xargs -r0 grep "indexname"

 

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...