# Issue with Automatic CSV Report Generation from Kibana 7.13.4

**URL:** <https://discuss.elastic.co/t/issue-with-automatic-csv-report-generation-from-kibana-7-13-4/279827>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [July 28, 2021, 8:34am UTC](https://discuss.elastic.co/t/issue-with-automatic-csv-report-generation-from-kibana-7-13-4/279827 "2021-07-28T08:34:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jancodenew](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jancodenew](https://discuss.elastic.co/u/jancodenew)\
**Post date:** [July 28, 2021, 8:34am UTC](https://discuss.elastic.co/t/issue-with-automatic-csv-report-generation-from-kibana-7-13-4/279827/1 "2021-07-28T08:34:49Z")

</div>

Hi,

In earlier version of kibana I used to decode and encode the post url from Kibana discover tab to change the timestamp to gte: "now-24h" lte: "now" in the url to fetch last 24 hours of data while auto generating the report using the watcher.

Script usded:  
[Reflection.Assembly]::LoadWithPartialName("System.Web") | Out-Null  
[System.Net.WebUtility]::UrlEncode("")  
[System.web.HttpUtility]::UrlDecode("")

Now i am not able to decode the post url from latest version of kibana 7.13.4 after changing the time range as mentioned above. One difference noticed in latest version of URL is that it comes with kibana query language.

Please help me to resolve this issue.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 3, 2021, 6:28pm UTC](https://discuss.elastic.co/t/issue-with-automatic-csv-report-generation-from-kibana-7-13-4/279827/2 "2021-08-03T18:28:53Z")

</div>

Hello,

The time range should be in plain text so you can change it without the decode, for example in my one:  
/api/reporting/generate/csv\_searchsource?jobParams=(browserTimezone:Europe/Paris,columns:!(),objectType:search,searchSource:(fields:!((field:'\*',include\_unmapped:true)),filter:!((meta:(index:'90943e30-9a47-11e8-b64d-95841ca0b247',params:()),range:(timestamp:(format:strict\_date\_optional\_time,gte:'2020-08-03T18:24:46.927Z',lte:'2021-08-03T18:24:46.927Z')))),index:'90943e30-9a47-11e8-b64d-95841ca0b247',parent:(filter:!(),index:'90943e30-9a47-11e8-b64d-95841ca0b247',query:(language:kuery,query:'404')),sort:!((timestamp:desc)),version:!t),title:lala)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 31, 2021, 6:29pm UTC](https://discuss.elastic.co/t/issue-with-automatic-csv-report-generation-from-kibana-7-13-4/279827/3 "2021-08-31T18:29:19Z")

</div>

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