Dashboards & Visualizations

How to create a histogram?

shahwill
Engager

Hey guys,

I'm trying to display some data in a histogram, is there a command that will allow me to create a histogram?

Say the fields I want to use are JavaMemory as the x axis and the amount of times it went over 75 as the y axis. The source of the field would just be source="C:\blah"

Any help is greatly appreciated!

Tags (3)

dwaddle
SplunkTrust
SplunkTrust

Your example is not strictly a histogram. A basic histogram for a variable would be a chart of the frequency of values for that variable. A simple histogram for your JavaMemory field might work like:

source=C:\blah | chart count by JavaMemory

If you want to filter the criteria going into the histogram, then maybe this:

source=C:\blah | search JavaMemory > 75 | chart count by JavaMemory

Does this get close to what you're looking for?

dwaddle
SplunkTrust
SplunkTrust

Do you have an update?

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Announcing the General Availability of Splunk Enterprise Security 8.1!

We are pleased to announce the general availability of Splunk Enterprise Security 8.1. Splunk becomes the only ...

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...