Knowledge Management

What is the default order for tag usage?

follings
Engager

I am trying to understand the order for tag usage in a search.

I have a user with a saved search in their user context that is using a tag. The tag does not exist in the user/application context nor does it exist in application context, but the tag does exist in other applications.

To illustrate:

Saved search exists in user/search: bob/app1 with a tag=proxy.

The tag does not exist for the user/app bob/app1, nor does it exist in application app1.

The tag does exist in applications app3, app5, and search, each with a different variation.

My question is, which tag(s) should the saved search use?

0 Karma
1 Solution

solarboyz1
Builder

For any objects, how and if they are used depends on....

  • Context - How is the tag shared, private, app, global.

IF the tag defined in app3 is only shared to app3, it won't impact Bob's search run from App2.

  • Permissions -

Bob can only use the tags that Bob's user role has permissions to.

  • Precedence -

If identical objects are configured in multiple apps, which configuration is used is based on precedence

  1. System local directory -- highest priority
  2. App local directories
  3. App default directories
  4. System default directory -- lowest priority

That's the background...now you could look through all the configs and figure it out yourself or... use btool
https://docs.splunk.com/Documentation/Splunk/7.2.4/Troubleshooting/Usebtooltotroubleshootconfigurati...

So, here is how to look for the tag=proxy for user Bob in the Search app:

$ ./splunk btool --debug --user=Bob --app=search tags list tag=proxy
/opt/splunk/etc/apps/testapp/default/tags.conf [tag=proxy]
/opt/splunk/etc/apps/testapp/default/tags.conf proxy = enabled

By using --debug, it will show you which file the settings Bob will use come from.
In this case you can tell that all the setting Bob will use for this Tag from from testapp.

View solution in original post

solarboyz1
Builder

For any objects, how and if they are used depends on....

  • Context - How is the tag shared, private, app, global.

IF the tag defined in app3 is only shared to app3, it won't impact Bob's search run from App2.

  • Permissions -

Bob can only use the tags that Bob's user role has permissions to.

  • Precedence -

If identical objects are configured in multiple apps, which configuration is used is based on precedence

  1. System local directory -- highest priority
  2. App local directories
  3. App default directories
  4. System default directory -- lowest priority

That's the background...now you could look through all the configs and figure it out yourself or... use btool
https://docs.splunk.com/Documentation/Splunk/7.2.4/Troubleshooting/Usebtooltotroubleshootconfigurati...

So, here is how to look for the tag=proxy for user Bob in the Search app:

$ ./splunk btool --debug --user=Bob --app=search tags list tag=proxy
/opt/splunk/etc/apps/testapp/default/tags.conf [tag=proxy]
/opt/splunk/etc/apps/testapp/default/tags.conf proxy = enabled

By using --debug, it will show you which file the settings Bob will use come from.
In this case you can tell that all the setting Bob will use for this Tag from from testapp.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...