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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...