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!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...