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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...