3ka5_cat
3ka5_cat

Reputation: 131

Scripting in Kibana

I'm quite new for ElasticSearch and absolutely newbie in Kibana and was a little bit confused:
Doc says that for Kibana 4 we could use advanced scripting in queries, but with later update that groovy is currently disabled.

My question is: is it possible to make advanced queries in Kibana 4.5's Discovery, using some logic, like checking array field's size?

Am I right that search field in Discovery tab is only accepting URI search, which is limited in options?

Upvotes: 0

Views: 902

Answers (1)

Yuvraj Gupta
Yuvraj Gupta

Reputation: 2475

Yes you can created scripted fields in Kibana which will compute the results at run time.

You can use any of the fields present and use those fields to create dynamic fields such as addition of 2 numeric fields etc.

You can create a scripted field by :

  1. Clicking on Settings Tab
  2. Click on the Index name (present in Left side).

You will now get list of fields on the right.

  1. Click on Scripted Fields Tab which is beside Fields tab.
  2. Click on Add Scripted field to add scripted fields.

Example to add 2 numbers,Create a scripted field with following expression:

doc['field1'].value + doc['field2'].value

Upvotes: 0

Related Questions