Splunk Search

Different results for error "specified span would result in too many (>50000) rows" based on time range

keet1009
New Member

I am trying to run the below to get the avg/max number of hits per second each day. I have tried this multiple times and sometimes it works without issues (esp. for "Previous Month") and sometimes I get the the specified span would result in too many (>50000) rows (esp. for Today or Previous Week)

host = host  sourcetype=sourcetype | fields linecount  _time -_* |fields linecount  _time -_* | timechart span=1s count | timechart span=1d max(count) avg(count)

Any thoughts on why I would sometimes get this error when running the same query for the same time period?

Thanks!

Tags (1)
0 Karma

somesoni2
Revered Legend

Give this a try

| tstats count WHERE host = host sourcetype=sourcetype by _time span=1s | timechart span=1d max(count) avg(count)

Since you're using only the default metadata fields, the tstats will give you same results with lightening fast speed.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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