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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...