Splunk Dev

Why does my Splunk Service return an empty CollectionIndexes?

sung101
Engager

We have developed a Splunk client app using Splunk Java SDK.

A particular Splunk server installation has a few indexes with data stored in them. When getIndexes() is called in com.splunk.Service class object, it returns an empty CollectionIndexes. However, on the same Service object, we can search data in the indexes and it is certain that those indexes do exist.

IndexCollection indexCollection = service.getIndexes();
boolean indexNotFound = indexCollection.isEmpty();

I got the same results with Java SDK 1.5.0.0 and 1.6.5.0.

This is happening in a particular Splunk server installation. For other Splunk server installations, we do not have any issue. Under what condition could this issue happen? What can I do to troubleshoot?

Labels (1)

ssrrjj
Engager

Can someone help here!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...