I am relatively new to splunk, and I was wondering if there is a way to find out how many indexes are in my splunk environment and their names too. I look forward to your answer.
For their names;
| rest splunk_server=* /services/data/indexes | table title
Unless you are an admin, you may not have visibility into all the indexes in your splunk env. To see which indexes you have access to, you can use this search
| tstats count where index=* by index
You should use “All time” selection and even then it showed only indexes where is at least one event, but not empty indexes.