I have created a watcher action in dev tools and I want it to update it's data that displays the last 24 hours from the discover tab every hour meaning I want it to see new data that has recently been added in the hour. Unfortunately, every hour keeps displaying the same data and is not updating with everything that has been added to it. Is there any way you can help me with this please?
I used the POST URL from the discover tab on one of my searches and I feel like that it is the issue why the data is not being updated. Is there any way you could help me with it?
PUT _watcher/watch/daily_report
{
"trigger" : {
"schedule": {
"interval": "1h"
}
},
"actions" : {
"email_admin" : {
"email": {
"to": "'Angad Panesar <angz.panesar@gmail.comk>'",
"subject": "Report",
"attachments" : {
"daily_report.pdf" : {
"reporting" : {
"url": "https://staging-mc.kb.us-east-1.aws.found.io:9243/api/reporting/generate/csv_searchsource?jobParams=%28browserTimezone%3AEurope%2FLondon%2Ccolumns%3A%21%28%29%2CobjectType%3Asearch%2CsearchSource%3A%28fields%3A%21%28%28field%3A%27%2A%27%2Cinclude_unmapped%3Atrue%29%29%2Cfilter%3A%21%28%28meta%3A%28field%3Adt%2Cindex%3Ab5f332d0-43c7-11ec-b5ab-fbc66f2b8ddf%2Cparams%3A%28%29%29%2Cquery%3A%28range%3A%28dt%3A%28format%3Astrict_date_optional_time%2Cgte%3Anow-2d%2Clte%3Anow%29%29%29%29%2C%28meta%3A%28field%3Adt%2Cindex%3Ab5f332d0-43c7-11ec-b5ab-fbc66f2b8ddf%2Cparams%3A%28%29%29%2Cquery%3A%28range%3A%28dt%3A%28format%3Astrict_date_optional_time%2Cgte%3A%272022-02-15T15%3A05%3A33.019Z%27%2Clte%3A%272022-02-17T15%3A05%3A33.019Z%27%29%29%29%29%29%2Cindex%3Ab5f332d0-43c7-11ec-b5ab-fbc66f2b8ddf%2Cparent%3A%28filter%3A%21%28%29%2Cindex%3Ab5f332d0-43c7-11ec-b5ab-fbc66f2b8ddf%2Cquery%3A%28language%3Akuery%2Cquery%3A%27%27%29%29%2Csort%3A%21%28%28dt%3Adesc%29%29%2CtrackTotalHits%3A%21t%29%2Ctitle%3ALAST_2DAYS%2Cversion%3A%277.17.0%27%29",
"retries":100,
"interval":"15s",
"auth":{
"basic":{
"username":"angad",
"password":"xxxx"
}
}
}
}
}
}
}
}
}