Security

Is there a configuration to restart Splunk web without asking for credentials?

marian_coman
Explorer

Hello,

Is there a way to restart splunk web without being asked for session credentials?

[splunk@splunk]$ splunk restart splunkweb
Your session is invalid. Please login.
Splunk username:

I would like to have this scheduled in order to get updates for https://splunk:8000/en-US/static/app/my_app/my_csv.csv
Or even better, a way to get that csv link updated, as the only way I found was through splunk web restart ( I have the add-on for debug refresh, but it doesn't seem to work in my enviroment)

Thank you!

0 Karma

harsmarvania57
SplunkTrust
SplunkTrust

Hi @marian_coman,

You can run below command and pass admin username and password in command itself.

$SPLUNK_HOME/bin/splunk restart splunkweb -auth <USER>:<PASSWORD>

I hope this helps.

Thanks,
Harshil

0 Karma

marian_coman
Explorer

Hi @harsmarvania57, this would work , but I would prefer not to put credential in a scheduled task/script.

0 Karma

adonio
Ultra Champion

hello there,

does \debug\refresh works?
put in url: http://YourSplunkServer:8000/en-US/debug/refresh

0 Karma

marian_coman
Explorer

It works, but it's not the desired approach, I need to get the .csv file updated daily and would need a way to automate this.

0 Karma

MuS
SplunkTrust
SplunkTrust

If debug/refresh works for you have a look at this app https://splunkbase.splunk.com/app/1871/ and you can use the pre-built saved search to schedule the reload 😉

cheers, MuS

0 Karma

marian_coman
Explorer

Hey MuS, I have your add-on installed, it runs successfully for "| refresh" (all the components are with status 200) but for some reason it doesn't refresh the CSV in static... but http://YourSplunkServer:8000/en-US/debug/refresh does instead...

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