Splunk Enterprise Security

How to use time range from time picker in dashboard search?

tromero3
Path Finder

I just added a time picker to one of my dashboards. One of the panels in this dashboard is showing "new" vulnerabilities, which is looking at any vulnerability where the "first_found" field is within a certain time range.

Previously, I just wanted to see anything first_found within the last 30 days so I used the below query. But now that I've added a time picker, I'm trying to find out how I can use the range selected in the time picker in my search?

So my search would be looking at anything first_found between dates selected in my time picker.

Any help would be much appreciated, thank you!

| eval n=relative_time(now(),"-30d@d") | eval n=strftime(n,"%Y-%m-%dT%H:%M:%S.%QZ") | search first_found < n |

So to clarify, I need to use the time picker token in my search string, so that I am seeing events where the "first_found" field (which is a date) is within the date range specified by the time picker.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Edit the dashboard and click the magnifying glass icon to edit the search for the panel. Select "Shared Time Picker" from the Time Range dropdown. Save the changes.

---
If this reply helps you, Karma would be appreciated.
0 Karma

tromero3
Path Finder

It's already using the shared time picker but now I need to edit the search string so that it is using the range selected by the time picker for the first_found field in the events.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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