Dashboards & Visualizations

How to get date range in report from search?

KristianLind
Explorer

Hi, I have a search and a report for the search. 
How can I get the date range in the report? 

2022-05-17_13-32-51.jpg2022-05-17_13-35-02.jpg

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| fieldformat info_min_time=strftime(info_min_time,"%F %T")

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| addinfo

This adds info fields to the event - info_min_time is the earliest, info_max_time is the latest from the search being executed.

0 Karma

KristianLind
Explorer

Thanks 🙂 
Can I get that in human readable format? 

Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| fieldformat info_min_time=strftime(info_min_time,"%F %T")

KristianLind
Explorer

awesome 🙂 
Can I remove some fields from addinfo  from the result. 
e.g I don't need

 2022-05-17_14-02-44.jpg

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| fields - info_*
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...