Splunk Search

help span would result in too many rows

dhavamanis
Builder

we are getting this error more frequently, can you please tell us the optimized settings to avoid this error,

The specified span would result in too many (>50000) rows.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Yeah, that's a timechart error.

Assuming you're specifying span=foo, either replace foo with a value more appropriate for your time range or switch to specifying bins=200 or some other number instead. That'll make sure timechart will only generate up to 200 rows.

Alternatively, leave off both settings and let the default bins=100 take over for now.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Yeah, that's a timechart error.

Assuming you're specifying span=foo, either replace foo with a value more appropriate for your time range or switch to specifying bins=200 or some other number instead. That'll make sure timechart will only generate up to 200 rows.

Alternatively, leave off both settings and let the default bins=100 take over for now.

martin_mueller
SplunkTrust
SplunkTrust

Use this instead:

index="idxweblog" source="/var/log/idx/api.log" "/member/login" "API_KEY=c6e823fff8b14405a04408162bbe6e11"
| bin span=1s _time | top 1 _time | table count
0 Karma

dhavamanis
Builder

thank you! it works fine.

0 Karma

dhavamanis
Builder

we are using this query and getting results with warning message,

index="idxweblog" source="/var/log/idx/api.log" "/member/login" "API_KEY=c6e823fff8b14405a04408162bbe6e11" | timechart span=1s count(API_KEY) | sort count(API_KEY) desc | head 1 | table count(API_KEY)

0 Karma

somesoni2
Revered Legend

What command are you using, timechart?

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...