Need to schedule a query

Hi Experts,

I want to schedule a query in kibana . Is any possibility to do that?
will share you my query.

PUT index/_delete_by_query
{
"query":{"range":{"createdon":{"lt":"now-1d","format" : "yyyy-MM-dd HH:mm:ss"}}}
}

thanks in advance,
Sriguruvel.

Hi @SRIGURU_VEL

You might want to create a watch for that and call a dedicated Webhook. As you are doing a destructive operation make sure to secure your endpoint.

Fom Kibana you can access the UI to create an advanced watch from Stack management > Watcher.

Here are the docs for the webhook watches: Watcher webhook action | Elasticsearch Guide [7.15] | Elastic

Cheers
Sébastien

Hi @sebastien ,

Thanks for reply .I am using Searchguard for authentication . watcher is X-pack plugin.
Now what to do?.

thanks ,
Sriguruvel.

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