Splunk Search

error in timechart command and too many bins

bwojciechowski
New Member

I am getting the following error

Error in 'timechart' command: Span value '1m' results in too many (> 50000) bins. Edit limits.conf to change limits.

In my limits.conf file maxbins is not set, but maxresultsrow is set to a larger number. The comments state that if maxbins is not specified, it will default to the maxresultsrows

[searchresults]
maxresultrows = 5000000

commented line: if maxbins not specified or = 0, defaults to searchresults::maxresultrows

Any assistance would be appreciated.

Tags (1)
0 Karma

Dan
Splunk Employee
Splunk Employee

How can you be sure that maxbins is not set? It does get set in $SPLUNK_HOME/etc/system/default/limits.conf, specifically:

[discretize]
maxbins = 50000

Have you tried updating this (by creating a etc/system/local/limits.conf)? You can also run the CLI command:

> splunk.exe cmd btool limits list
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...