Query Functions
Humio’s query functions take a set of events, parameters, or configurations. From this, they produce, reduce, or modify values within that set, or in the events themselves within a query pipeline.
Functions broadly fall into two categories, Transformation and Aggregate:
Transformation functions, sometimes referred to as Filter functions, transform or filter data and may add, remove or modify fields.
Aggregate functions combine events into a new results—often a single number or row.
Below is an alphabetical listing of all of Humio query functions.
Function 
Description 

Determines autonomous system (AS) number and organization associated with a given IP address. 

Calculates the average for a field over a set of events. 

Performs Base64 decoding of a field. 

Reads given parameter and assigns the value to a field in the event. 

Marks the live query the function is used in as repeating. 

Extends the groupBy function for grouping by time. 

Calls the named function on a field over a set of events. 

Filters events using CIDR subnets. 

Collects fields from multiple events into one event. 

Concatenates the values of a list of fields into a value in a new field. 

Concatenates values of all fields with same name and an array suffix into a new field. 

Duplicates event so pipeline will see both events. 

Counts events streaming through the function. 

Calculates the rate for a counter field. 

Creates a field to given parameter and given value. 

Removes attributes or columns from a result set. 

Drops completely an event in parser pipeline to stop it from being ingested. 

Assigns the current time as milliseconds since 1970 to the end time of query. 

Creates a new field by evaluating the provided expression. 

Returns number of fields event uses internally for the values. 

Adds a set of fields describing the storage locations of given event. 

Returns byte count event uses internally for the values, not including field names. 

Retrieves a list of available fields. 

Retrieves statistics about fields. 

Finds timestamp in given field and parses, trying multiple timestamp formats. 

Formats a string using printfstyle. 

Formats a duration into a more readable string. 

Formats a string according to strftime, similar to unix strftime. 

Calculates a geohash value given two fields representing latitude and longitude. 

Groups events by specified fields and executes aggregate functions on each group. 

Computes a noncryptographic hash of a list of fields. 

Calculates a secure hash of a field and uses it to match events as a filter. 

Calculates a secure hash of a field for storing in the event. 

Returns the oldest events. 

Used to generate a trendline for a periodic dataset. 

Filters records by values where field is in given values. 

Look up IOCs (indicators of compromise). 

Determines country, city, longitude, and latitude for given IP address. 

Join two Humio searches. 

Nicer output to a JSON field. 

Keyvalue parse events. 

Returns the number of characters in a string field. 

Computes linear relationship model between two variables using leastsquares fitting. 

Enhances events with metadata. 

Changes text of a given string field to lowercase letters. 

use lower() in queries. 

Searches text using a CSV or JSON file and can enhance entries. 

Calculates the absolute value of a field. 

Calculates the arc cosine of a field. 

Calculates the arc sine of a field. 

Calculates the arc tangent of a value. 

Rounds field value to smallest integer that’s larger than or equal to it. 

Calculates the cosine of a field. 

Returns the hyperbolic cosine of a double field. 

Converts angles from degrees to radians. 

Calculates Euler’s number e raised to the power of a double value in a field. 

Returns the exponential value of a number minus 1. 

Returns largest integer value not greater than the field value given. 

Calculates the natural logarithm (base e) of the value in a double field. 

Calculates the base 10 logarithm of a double field. 

Calculates the natural logarithm of the sum of field’s value and 1. 

Calculates the base 2 logarithm of a double field. 

Calculates the floor modulus of field value and the divisor. 

Calculates the field value to the exponent power. 

Converts angles from radians to degrees. 

Calculates the sine of a field. 

Calculates the hyperbolic sine of a double field. 

Calculates the rounded positive square root of a double field. 

Calculates the trigonometric tangent of an angle in a field. 

Calculates the hyperbolic tangent of a field. 

Finds the largest number for the specified field over a set of events. 

Finds the smallest number for the specified field over a set of events. 

Calculates percentiles and returns one event with a field for each percentile given. 

Assigns the current time value as milliseconds since 1970. 

Parses CEF version 0.x encoded messages. 

Parses a CSVencoded field into known columns. 

Parses a fixed widthencoded field into known columns. 

Parses input from hex encoded bytes, decoding resulting bytes as a string. 

Converts an integer from any radix or base to baseten, decimal radix. 

Parses specified fields as JSON. 

Parses LEEF version 1.0 and 2.0 encoded messages. 

Parses a string into a timestamp. 

Extracts URL components from a field. 

Parses specified field as XML. 

Returns one event with a field for each percentile specified. 

Finds numeric range between smallest and largest numbers for field over a set of events. 

Events using RDNS lookup. 

Extracts new fields using a regular expression. 

Renames a given field. 

Replaces each substring that matches given regular expression with given replacement. 

Rounds an input field up or down, depending on which is nearest. 

Samples the event stream. 

Produces data compatible with Sankey widget. 

Used to specify a set of fields to select from each event. 

Specify fields to select from events, keeping value of most recent event for each field. 

Used to collate data from events that share a key. 

Runs query to determine IDs, and then gets all events containing one of them. 

Collects a series of values for selected fields from multiple events into one or more events. 

Collects events into sessions, and aggregates them. 

Calculates a entropy measure from a string of characters. 

Sorts events by their fields. 

Splits an event structure created by json array into distinct events. 

Splits a string by specifying a regular expression by which to split. 

Assigns the current time as milliseconds since 1970. 

Used to compute multiple aggregate functions over the input. 

Calculates the standard deviation for a field over a set of events. 

Removes ANSI color codes and movement commands. 

Computes a subnet from a IPV4 field. 

Calculates the sum for a field over a set of events. 

Used to create a widget to present the data in a table. 

Returns the newest events. 

Evaluates boolean expression and filter events for which expression is true. 

Gets the day of the month of a timestamp field. 

Gets day of the week from 1 (Monday) to 7 (Sunday) of a timestamp field. 

Gets the English display name of day of the week of a timestamp field. 

Gets the day of the year of a timestamp field, from 1 to 365, or 366 in a leap year. 

Gets the hour (24hour clock) of a timestamp field. 

Gets the millisecond of a timestamp field. 

Gets the minute value of a timestamp field. 

Gets the month of a timestamp field. (from 1 to 12) 

Gets the English name of month of a timestamp field (e.g., January). 

Gets the second of a timestamp field. 

Gets the week number within a year of a timestamp, a value from 1 to 53. 

Gets the year of a timestamp field. 

Used to draw a linechart where the xaxis is time. 

Calculates a structure hash which is equal for similarly structured input. 

Finds the most common values of a field. 

Transposes a query results set by creating an event for each attribute. 

Converts values between different units. 

Changes contents of a string field to uppercase letters. 

URLdecodes the contents of a string field. 

URLencodes the contents of a string field. 

Computes aggregate functions over a sliding window of data. 

Used to produce data compatible with the World Map widget. 

Writes fields as JSON. 

Nicer output to an XML field. 