Watcher / Reporting - Timestamp Not Relative in Saved Search URL Export

Hi All,

When you export a saved search CSV export URL like this:

The resulting url looks like this:


Notice how the date is hardcoded, even though we specified a relative timerange in the export.

This an issue because when you put this URL into a watcher, as recommended here, the resulting data set will always be the same because watcher is always querying the same date range.

What is the best way to get around this? Can I specify a relative date range in the URL? Is there an override condition in Watcher that will solve this?

Thank you!

Hi @tyler_hilsabeck, yeah you should be able to manually enter a relative date range in the URL. Try copy pasting the exact text from the URL in your browser when you have the time range you want selected.

Would you mind also submitting an issue for this on our Github repo? IMO this looks like a bug we should fix for everyone.


Ticket has been created.

I will give it a shot but the browser URL queries Kibana and not Elasticsearch:



The generated URL which queries the /api/reporting endpoint:


In the interim, do you know if there is a way to manually edit the query that is used in the URL to specify a dynamic date range? I have had trouble finding documentation for the /api/reporting/ with regard to timestamps.

Thanks again!

@tyler_hilsabeck thanks! I have labeled this ticket so it gets to the correct team.

Elasticsearch supports date math in its range query, so manually updating the existing range query in the URL with a value like now should work.

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