Splunk Search

How to change timechart data points to reflect full timestamp instead of date_hours

jonleach
New Member

Disclaimer - very green to Splunk

My timechart is built with the following

$search | timechart avg(date_hour) by date_mday

And the chart itself looks fine but because im only asking for date_hour each point only reflects the hour portion of each log's time stamp. Can I change my query so the alt text for each data point on the chart reflect the full time stamp?

Also, my x axis properly sorts point by day but my y axis bounds are off - can I set the max and min myself?

THANK YOU

0 Karma
1 Solution

jawaharas
Motivator

Try 'span' keyword in 'timechart' command

<base_search>
| timechart span=1h avg(field_name)

View solution in original post

0 Karma

jawaharas
Motivator

Try 'span' keyword in 'timechart' command

<base_search>
| timechart span=1h avg(field_name)
0 Karma

jonleach
New Member

Adding span gets me exactly what I needed, thanks!

0 Karma
Get Updates on the Splunk Community!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...