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
Contributor

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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...