Splunk Search

Time range of timechart changed after upgrade to version 5.0.1

OL
Communicator

Hello,

I have noticed a different behaviour in Splunk 5.0.1 when comparing with Splunk 4.3.x with the timechart search command.

For a graph showing the last 4 hours of data, in Splunk v4.3.x, if I didn't have any data for the past hour, it was showing me a time range of 4 hours with data only in the first 3 hours.
In Splunk v5.0.1, if I don't have any data for the past hour, it will show me only a time range of 3 hours and ignoring the past hour. For most of my graphs, this is not the desired behaviour.

I tried to play with the "fixedrange" parameter by forcing it to True, but this didn't change anything.

Would anyone know how to force timechart to display the whole selected time range even if we don't have any data?

Regards,

Olivier

Tags (2)
0 Karma

OL
Communicator

Hello,

The problem was with Splunk 5.0.1 and has been corrected in 5.0.2+. I don't know the version you have but might be useful to check it.

Regards,
Olivier

0 Karma

sansay
Contributor

It seems that this issue is back with version 6.
I have tried a lot of different ideas to make timechart show the complete time range. The only one I found is adding records using gentime, like this:

earliest=-24h@h latest=now index=your_index transaction amount | append[ gentimes start=-1 increment=1h ] | timechart span=1h sum(dollars) fixedrange=true

But the search takes anywhere between 3 and 4 minutes to complete, whereas without gentime, it will take only 10 to 15 seconds

0 Karma

pvols1979
Explorer

I have also attempted the fixedrange setting with no positive results. I am wondering if there is anything we can do with the XML directly.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...