Getting Data In

Timerange as an argument

Raghul_S
Engager

I am working on using the same time range as an argument used in the Time range picker.  how do I do that?

|metadata index=* type=hosts|eval First_Time=strftime(firstTime, "%Y-%d-%m %H:%M")

This is my search query and I need the "firstTime" values to be the same value as used in the search head (i.e) if this search is run from 1st Nov to 30th Nov, I need the firstTime values also in this specified time range as given in the time-range picker.

Labels (2)
0 Karma

Raghul_S
Engager

Hii, 
Thanks for responding, actually Implemented it in a different way using 2 queries!!
thanks anyway!

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust
0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...