Getting Data In

How can I find the timezone difference in Splunk indexing for 2 timestamps in an event?

swmishra_splunk
Splunk Employee
Splunk Employee

I am facing an issue, where there are two timestamps in the events, and I want Splunk to detect the first time stamp, not the second one. How can I get it done? here is a sample event

Mar 20 06:27:29 10.214.14.249 id=EQSONICWALL sn=C0EAE4FC9962 time="2019-03-20 05:27:29" fw=10.214.14.249 pri=6 c=1024 m=537
0 Karma

saramamurthy_sp
Splunk Employee
Splunk Employee

Hi

You need to make the changes in the props.conf, under which you need to change the time format and you can see the first timestamp With the sample event you have provided you need to makes these changes if you need the first timestamp to be in the event.

TIME_PREFIX = ^
TIME_FORMAT = %b %d %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD =15

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...