Calculate age

HI,

i have a birthday field. what is the best practice to calculate age to be able to search on and for doing some visualization in kibana also?

thanks,
Shahar

You mean you want to show the age of a person at any given moment in KB?

In years.

There's no metric etc for this, you'd probably need to do a scripted field with some painless math.

Yes i assumed so, but how can i do it and where. Lets say i have a field
named DayOfBirth = 1975-09-16.

https://www.elastic.co/guide/en/kibana/5.4/scripted-fields.html is where to start.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.