All Apps and Add-ons

Source Time Zone Searching

cconkle
New Member

I'm not sure if this is possible, but I'm trying to figure out if there is a way to see what the unadjusted original time stamp was on an event. I'm trying to search across global time zones (CST, PST, GMT, AWST, etc.) to see if regardless of timezone if an event occurred between certain hours. I can do (date_hour > 4 AND date_hour < 21) but that's only against the search users default time zone. I need to search between 4 and 21 in the original data time stamp if that's even possible.

I know I could tag sets of servers by time zone and then have one search per timezone but I would like to have a single search instead of lots of searches running, as well as avoid having to hand update the list everytime we add/remove a server.

Is this possible?

Thanks!

0 Karma

somesoni2
Revered Legend

Below can give you the original timestamp that was present in the source/log file. You can utilize this to extract date parts and build your search

index=abc sourcetype=xyz | eval orig_time = substr(_raw,timestartpos, timeendpos-timestartpos)
0 Karma

somesoni2
Revered Legend

It is definitely possible. Forwarders can specify which timezone to consider while forwarding the events to indexer. Have a look at "http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps".

0 Karma

cconkle
New Member

Is it possible that the forwarder is already doing something to that date/time before it hits the indexer? It seems like orig_time is always the same as the regular item time regardless of whether its a CST or GMT server.

0 Karma

cconkle
New Member

For some reason captcha won't let me remove the indextime search tag. This is not related to the indextime search app

0 Karma
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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...