icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Search Command: Quantify
SHA256 checksum (search-command-quantify_14.tgz) c8ab06d4b0877a4989994c9d1fc3e51f657f02332405e18b1d25c78a55796724 SHA256 checksum (search-command-quantify_11.tgz) 9e0b674ffe8dc964799ddbc02640cee21ee53c4f7f9959cd4cdcc4ff9e2352bc SHA256 checksum (search-command-quantify_10.tgz) 050afa69e4b4b6e2de2c9f23acad509d112185bcdff47fafeec0e640ef16e561
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Search Command: Quantify

This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
Quantify is a reworking of the 'rangemap' command, allowing for the dynamic creation of categories or 'ranges' in which to group data.

Whereas 'rangemap' requires us to know our categories and ranges, beforehand, quantify will generate categories based on the data. Quantify adds a 'range' field to each event that denotes which categories the event falls into. The 'range' field is a space-delimited list that can be piped into makemv to create a multivalued field (i.e. | makemv range) when needed.

** TODO: Floating point support will be added to a future release.

Syntax:
quantify (max=<int> | maxfield=<field>)+ (min=<int> | minfield=<field>)+ [overlap=high|low] [label=high|low|mid|range] bins=<int> field=<field>

'bins' - how many categories to create.
'field' - which field contains the values to
'min' - the floor to use when calculating categories. (Only valid when 'minfield' is not specified.)
'max' - the ceiling to use when calculating categories. (Only valid when 'maxfield' is not specified.)
'maxfield' - the name of the field that contains the cieling to use for categories.
'minfield' - the name of the field that contains the floor to use for categories.
'overlap' - cause categories to all begin or end on the same value, allowing events to fall into multiple categories.
overlap=low - all categories will begin with the same floor ('min' or the value of 'minfield' by default).
overlap=high - all categories will end with the same ceiling ('max' or the value of 'maxfield' by default).
'label' - determines how to label the categories:
high - uses the highest value of category for its label.
low - uses the lowest value of a category for its label.
mid - uses the median value of a category for its label.
range - names the category according to its range, like the rangemap command (i.e. 'low-high'). This is the default.

NOTE: 'Quantify' attempts to split all categories, equally; however, if category sizes cannot be divided, equally, 'Quantify' will stretch the highest-value category.

Examples:
index=_internal | head 100 | streamstats count AS c | eventstats max(c) AS max_c min(c) AS min_c | quantify label=range maxfield=max_c bins=4 field=c | stats count by range
This will split the data into four categories, each category representing an equal division based on the ceiling provided by the 'total' field. This search creates (0-24, 25-49, 50-74, 75-100)

index=_internal | head 100 | streamstats count AS c | eventstats max(c) AS max_c min(c) AS min_c | quantify overlap=low label=range minfield=min_c maxfield=max_c bins=4 field=c | stats count by range
This will split the data into four overlapping categories, each category representing an equal division based on the ceiling provided by the 'total' field. This search creates (1-25, 1-50, 1-75, 1-100)

index=_internal | head 100 | streamstats count AS c | quantify label=low max=50 min=1 bins=2 field=c | stats count by range
This will create two dynamic categories (1-25 labeled '1' , 26-50 labeled '26'). Events whose c value are outside this range will be quantified as OTHER.

Release Notes

Version 1.4
July 12, 2012

README updated -- label option was incorrectly noted in the syntax.

Version 1.1
July 10, 2012

appIcon.png added to package, and version incremented to update older installs.

Version 1.0
July 9, 2012

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.