Splunk Search

Extracting date from filename and inserting as title in dashboard

sn_18
New Member

I need to extract the date from my filename "abc_20190401" and put it as a title in my dashboard?

0 Karma

ragedsparrow
SplunkTrust
SplunkTrust

You would extract the date from the file in a search and then set the token using the results of that search. Then reference your token in the title.

Setting a token using a search: https://answers.splunk.com/answers/442254/how-to-set-a-token-from-a-base-search-in-my-dashbo.html

Referencing a token in a title: https://answers.splunk.com/answers/639501/referencing-token-value-in-panel-title.html

0 Karma

HiroshiSatoh
Champion

Is the file name the source? Or is it a field? Is the file in some folder?

0 Karma

sn_18
New Member

The file name is the source. The file is in a folder.

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