Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
Fermium LABS logo


Build Status Github Releases (by Release)


Mathlion is a Kibana extension that enables equation parsing and advanced math under Timelion. Check out what it can do in the documentation


Copy the last installation url for your version of Kibana from the repository releases. The file follows the naming where the first version is the one of mathlion, the second version indicated it's the one in Kibana.

Remember that starting from Kibana 5.0 you always need an update version of every plugin for it to start as indicated here.

#Kibana >= 5.x

./bin/kibana-plugin install

#Kibana 4
./bin/kibana --install mathlion -u


.es(*).math("a=source")  //the variable "a" now contains the elasticsearch query.
.nop().math("a")  //this row now equals the former elasticsearch query

.es(*).math("source") //return the .es(*) query
.es(*).math("source+5") // add 5 to the .es(*) query

.nop().math("a=a+2 ; a=a+3 ")  //adds 5 to a
.nop().math("a=a+2 ; a=a+3 ; a ")  //adds 5 to a and displays a+5

.es(*).math("a=source")  //this query is invisible and does not generate an axis
.es(*).math("a=source; a")  //this query does

.nop.math("sqrt(3^2 + 4^2)") //returns 5

//Calculate power comsumption based on measured current and stimated voltage (in Europe)

//plot the horizontal statistical mean and variance
.es(*).math("me=mean(source); va=var(source)")

Supported Kibana versions

This plugin is supported by:

  • Kibana 5
  • Kibana 4.x (check out branch backport-4)

We regularly test only for Kibana 5. If you find bugs on Kibana 4 you can open a issue, but we would prefer a pull request.


  • Full-featured math in Timelion
  • Variables and custom functions
  • Physical constants
  • Units of measurement

For upcoming features and TODOs check here.

How to update (for developers)

If you need to update mathlion for a new Kibana release:

  1. Add your version to package.json, inside "kibanas".
  2. Inside travis.yml add an "ELASTIC_VERSION" environmental variable with the latest version of kibana.
  3. commit your changes
  4. run npm version patch

How to request an update (for users)

If you need to update mathlion for a new Kibana release:

  1. Add your version to package.json, inside "kibanas". Be sure to write correct Json. You can validate it Here
  2. Inside travis.yml add your version Here
  3. open a Pull request against Master

If you need it urgently, write to

Follow Fermium LABS on Twitter