Dynamic date field in kibana dashboard


(BHARATH MEKA) #1

Hi,

Is there a way to get current date in Kibana (3.x) so as to use it in a query.

For eg: In the kibana dashboard, I would like to use a query something like,

"query":
"type : message : [$CURRENT_DATE] - Initialized database browser*"


(Spencer Alger) #2

You can use a date range on a date field, but I don't think there is any way to do this by replacing a variable in a string. You'd probably have to use a scripted dashboard and calculate the right date that way.


(system) #3