Knowledge Management

Is it possible to dynamically reload a new/updated tags.conf file?

hulahoop
Splunk Employee
Splunk Employee

We would love it if there was a REST endpoint or way to create and update tags similar to the way we refreshed fields in the old days with "... | extract reload=t".

I understand you can simply restart Splunk to refresh new configuration including tags.conf, but we are trying to find ways to reload dynamically without restarting.

I also understand we have endpoints to support the addition/deletion of tags individually.

 Knowledge: http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTknowledge#search.2Ftags
 Configurations: http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTconfig

This is going to require some scripting or coding, which isn't terrible, but if there's a more efficient way to do this it would be preferred. Since there's no 'update' endpoint which means we also have to account for existing tags of the same when adding/deleting. Hoping there's some undocumented endpoint or utility to perform a bulk dynamic refresh.

We like the way tags are displayed next to the field in Splunk Web so using a lookup is not ideal, but could logically accomplish the same thing.

1 Solution

Ayn
Legend

You can reload tags.conf without having to start Splunk by hitting the debug/refresh endpoint (specifically the admin/fvtags entity):

http(s)://yoursplunkhost:8000/debug/refresh?entity=admin/fvtags

View solution in original post

Ayn
Legend

You can reload tags.conf without having to start Splunk by hitting the debug/refresh endpoint (specifically the admin/fvtags entity):

http(s)://yoursplunkhost:8000/debug/refresh?entity=admin/fvtags

Ayn
Legend

No, no REST endpoint that I know of. The authentication tokens might be different but the credentials are the same so hitting the debug/refresh endpoint programatically shouldn't prove too hard.

0 Karma

cdgrau
New Member

Is there a way to do this refresh using the REST API? My experience with Splunk is that the REST API and the web UI use different authentication schemes, which don't work with each other. The authentication token obtained with the REST login method doesn't seem to work with this debug/refresh endpoint.

0 Karma

hulahoop
Splunk Employee
Splunk Employee

Thank you, Ayn! This is most excellent. 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...