Dashboards & Visualizations

Can i run a refresh from the command line?

robertlynch2020
Motivator

Hi

From the GUI i run this, but i want to automate this process,
http://hp737srv:8000/en-GB/debug/refresh

can i run it from the command line?

I have tried Curl but its is not working

bash$ curl -u admin: -X POST http://hp737srv:8000/en-GB/debug/refresh
This resource can be found at http://hp737srv:8000/en-GB/account/login?return_to=%2Fen-GB%2Fdebug%2Frefresh.hp7

jaime_ramirez
Communicator

Hi

Last time I checked you could use the command | refresh from this app: https://splunkbase.splunk.com/app/1871

You could check the source code in the github repo: https://github.com/M-u-S/TA-debug-refresh

Also check this previous post: https://answers.splunk.com/answers/565493/is-there-a-cli-command-for-debug-refresh.html

It seems that if you want to refresh only selected endpoints you could list them and loop over them with curl. I will investigate further.

Hope it helps.

ololdach
Builder

This answer ist pretty good. I'd go for the python script:
https://answers.splunk.com/answers/615685/debug-refresh-or-bump-using-rest-api.html

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