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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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