All Apps and Add-ons

Can't Access Data From Non-Main Index Using Custom App (Sideview Utils)

RMartinezDTV
Path Finder

I feel like there is a simple answer to this question, but searching has failed me.

If I have a custom app (Sideview Utils in this case), how can I access data in indexes that aren't main? I have an index named XXX and the /manager/data/indexes webpage shows it is tied to the Search app. Similarly, my YYY index is tied to the Launcher app.

In the custom app, I can only retrieve data from the main index. Even if I search for *, the data is from the main index only.

What's the right way to allow the custom app access to data in XXX and YYY indexes? I don't see permissions on the index page.

1 Solution

ShaneNewman
Motivator

That is not really app specific, it is user specific.

Settings>Access Controls>Roles>Your Role>Indexes Searched by Default - Add "All non-internal indexes

Does that help?

View solution in original post

0 Karma

somesoni2
Revered Legend

As mentioned by ShaneNewman, Indexes are created on SPlunk instance and access is given by Role (ultimately user specific). What you have to do is to add indexes (XXX and YYY) to the role that your User Id is assigned.

Manager » Access controls » Roles » your role

In section "Indexes searched by default" and "Indexes", select the indexes XXX and YYY. and click on save. Log out and log in back and you're all set.

RMartinezDTV
Path Finder

Hm, this seems to work. I think the key was logging out and back in to get the changes to apply. I also learned a thing or two about the default Sideview Utils templates.

ShaneNewman
Motivator

That is not really app specific, it is user specific.

Settings>Access Controls>Roles>Your Role>Indexes Searched by Default - Add "All non-internal indexes

Does that help?

0 Karma

RMartinezDTV
Path Finder

Worked after I logged out and back in.
Thanks for helping me wrap my head around this.

RMartinezDTV
Path Finder

By complete coincidence, I just recently set that option to no avail. If this was the problem, then wouldn't I be able to do "index=XXX" in the Sideview Utils app's search anyway?

Can you (or someone) explain what the App field under Settings->Indexes refers to? Are indexes limited to the scope of their app?

My config files on the forwarder for XXX are in etc/apps/search so I can understand what happened there. Would moving the *.conf files have an effect?

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, ...