Reporting

Include date on a Splunk report

butzowj
Path Finder

Hello Splunkers -

I'd like to include the time/date range of a search in my report. If I have a report that runs at midnight showing all the results for yesterday, I'd like to be able to see the actual date on the report, not just the word "yesterday".

Is there any way this can be done?

Thanks.

Tags (1)
0 Karma
1 Solution

woodcock
Esteemed Legend

Yes, you can use now like this:

... | eval runDate=now()

Then you can reference it with $results.runDate$.

View solution in original post

woodcock
Esteemed Legend

Yes, you can use now like this:

... | eval runDate=now()

Then you can reference it with $results.runDate$.

Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...