Splunk Search

Relative time search to find last updated dashboards

SplnkUse
Path Finder

Hello,

 

Can you tell me please why the below does not work?

| rest splunk_server=local servicesNS/-/-/data/ui/views/
| where update > relative_time(now(),"-10d@d")

 

I want to search the dashboards that were updated in the last 10 days but it does not seem to return anything. Is it because I need to fix the timestamp format?

 

Thanks!

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rest splunk_server=local servicesNS/-/-/data/ui/views/
| where strptime(updated,"%FT%T") > relative_time(now(),"-10d@d")

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rest splunk_server=local servicesNS/-/-/data/ui/views/
| where strptime(updated,"%FT%T") > relative_time(now(),"-10d@d")
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...