Getting Data In

How to list all the log fragments, phrases, regexes and so on that are used in my dashboards?

adrianmander
New Member

We have a number of very useful Splunk dashboards built up for our application. It seems that every time we release, we are surprised to discover that someone inadvertently broke a Splunk dashboard widget because they changed a log line. It would be great to have a dynamically generated, self-updating list for all our dashboards of the log-line fragments, regexes etc. that are used. That way we could refer to this list and easily know in development and reviews when changes are going to break something in Splunk.

Is there an easy way to generate this kind of list? Ideally you would feed it a list of particular dashboards you don't want to break.

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

There is no built-in way to do that. You could create your own search using |rest /servicesNS/-/-/saved/searches and | rest /servicesNS/-/-/data/views and scanning the text of each result for something like quotation marks. You'll still have a ton of false positives to scan by hand.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no built-in way to do that. You could create your own search using |rest /servicesNS/-/-/saved/searches and | rest /servicesNS/-/-/data/views and scanning the text of each result for something like quotation marks. You'll still have a ton of false positives to scan by hand.

---
If this reply helps you, Karma would be appreciated.
0 Karma

diogofgm
SplunkTrust
SplunkTrust

what do you mean with log line in the dashboard context?

------------
Hope I was able to help you. If so, some karma would be appreciated.
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 ...