How to pass date range in url template

For example I woluld like set date range in http://localhost:5601/app/kibana#/management/kibana/index_patterns/ff959d40-b880-11e8-a6d9-e546fe2bba5f/field/category?_g=(refreshInterval:(pause:!f,value:900000),time:( **from:{{value}}, to:{{value}}**))

@Nurkan_Dzhsupov welcome to the community!
what you want is a range query where the field the range operates on is a date field datatype. Here's an example snippet from a query in Discover (using the kibana_sample_data_ecommerce dataset)

_g=(refreshInterval:(pause:!f,value:900000),time:(from:now-7d,to:now-6d))...

"now-7d" uses date math

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