Splunk Search

timechart max points on x axis

anuragkapur
Explorer

I have read in a few places that the max points that can be plot using a timechart is 1000. I have the following query which returns 960 data points.

host="myhost" source="/mylogs/a.log" resptime="*" | timechart span=90s avg(resptime) as avg_response_time

I run this query over 24 hour periods and the timespan is set to 90s. => 960 datapoints. However, these do not fit in a single view. i.e. I dont see all points on the x axis. I think roughly about 480 fit in a single view.

Any idea what I am doing wrong?

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

There are two different limits to consider. One is the number of objects a JSChart likes to display, that's 1200 and may be what you have read - if you have a bar chart with four serieses you can display up to 300 rows, giving you 1200 objects to display. Area and line charts don't create that many objects. The other is the number of data points on the x-axis, that appears to be 500 for either one.

Personally I'm doubtful that you need more. If you want to visualize single peaks you can consider plotting both averages and maximums/minimums, or maybe an Xth percentile.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

There are two different limits to consider. One is the number of objects a JSChart likes to display, that's 1200 and may be what you have read - if you have a bar chart with four serieses you can display up to 300 rows, giving you 1200 objects to display. Area and line charts don't create that many objects. The other is the number of data points on the x-axis, that appears to be 500 for either one.

Personally I'm doubtful that you need more. If you want to visualize single peaks you can consider plotting both averages and maximums/minimums, or maybe an Xth percentile.

anuragkapur
Explorer

Used the following query (as suggested) and got what I wanted: host="myhost" source="/mylogs/a.log" resptime="*" | timechart span=3m perc95(resptime)

0 Karma

anuragkapur
Explorer

I am using splunk v5.0.2

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

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 ...