Dashboards & Visualizations

Timechart is not behaving as expected

m7787580
Explorer

I have inserted the csv file into the splunk starting data from "2016-11-09 00:00:00" and ending data has date "2017-02-09 06:00:00".
I tried to use
Command
| inputlookup "Thread_Count"
| eval _time= strptime('_time',"%Y-%m-%dT%H:%M:%S")
| rename Thread_Prediction as Y
| timechart span=30m avg(Y) as Y
then Starting date coming as 2016-11-09 00:00:00 and ending date coming as "2017-02-09 06:00:00" which sounds good to me as expected.

but when i try to use this command
| inputlookup "Thread_Count"
| eval _time= strptime('_time',"%Y-%m-%dT%H:%M:%S")
| rename Thread_Prediction as Y
| timechart span=60m avg(Y) as Y

By just changing the span to 60 min starting date is coming as 2016-11-08 23:30:00(which is not even present in csv) and ending date as 2017-02-09 05:30:00.
Also in my csv file there is no row as 2016-11-08 as all the data is starting from 2016-11-09.

I need my search to be like that for 30 min span i want it to end as 2017-02-09 05:30:00-->2017-02-09 06:00:00 which is coming and for 60min span it should be 2017-02-09 05:00:00 -->2017-02-09 06:00:00 and then 7 rather than 2017-02-09 05:30:00--06:30.

I am using Splunk 6.5.1 instance

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

For half-hour time zones, timechart seems to snap to :30 minute mark instead of :00 minute mark. Not sure if that's a bug or a feature 😄 feel free to poke support for that.

You see 2016-11-08 23:30:00 because data at 2016-11-09 00:00:00 falls within the hour from 2016-11-08 23:30:00 to 2016-11-09 00:30:00.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Are you in a half-hour time zone like IST / UTC+0530?

0 Karma

m7787580
Explorer

Yes i am in IST zone

0 Karma

somesoni2
Revered Legend

What is the timerange picker value you selected? When you say starting date is 2016-11-08 23:30:00, do you see that in statistics tab or visualization tab?

0 Karma

m7787580
Explorer

I have selected All Time and this data is static.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...