Splunk Search

Using bin command can you put all values above a cutoff into the last bin?

jbrenner
Path Finder

I'm using the bin command to get a distribution of values, and each grouping is in increments of 10,000.
I have a few outliers way at the upper end, and I don't want to see all the empty buckets in the middle. Is it possible to put all values above a desingated cutoff value into the final bin?

Thanks,
Jonathan

Tags (2)

Vebloud
Explorer

Hello,

I have hit same problem with long tail in the graph. I have found solution with eval:

| bin span=100ms ProcessingTime **| bin span=100ms ProcessingTime | eval ProcessingTime=if(ProcessingTime > 2,"2.0+",round(ProcessingTime,1))** | chart count over ProcessingTime by ProcPhase

You will overwrite field whcih you used bin on by your condition. In my case, if processing time is more than 2s, it overwrite it with 2.0+ rounding to 1 decimal place is there also to ensure that values will remain in correct order in the graph.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...