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.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...