Splunk Search

Timechart in Local Timezone

gurkiratsingh
Explorer

Hi I am trying to make a time chart visualisation but I want it to be in IST(Indian Standard Time).


| eval received = strptime('timestamp', "%Y-%m-%dT%H:%M:%S.%3N")
| eval received_IST = received + 19800
| eval IST = strftime(received_IST,"%Y-%m-%d %H:%M")
| timechart count by Status

Status is a column which is consisting of true and false in string data type. In IST variable I have the timestamp in IST but how to implement it in the timechart? It is automatically picking up the (_time) by default

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Have you tried setting the timezone for your user to IST?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Your user's timezone setting applies to your user only. In general I recommend setting the right timezone instead of messing around with adding/subtracting seconds manually.

0 Karma

gurkiratsingh
Explorer

No the timezone is set to default. I have many live dashboards on my account in which I am already using the conversion of timestamps from UTC to IST. So I do not want to make any sudden change which shall cause any malfunction in the dashboards as many people are using them. If I do the change will there be any such affect do you have any idea?

0 Karma
Get Updates on the Splunk Community!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...