Kibana: [Reporting] Inconsistent output between Export CSV from Discover, and Download CSV from Dashboard

Created on 9 Jun 2020  路  9Comments  路  Source: elastic/kibana

Kibana version: 7.x

Terms:

  • "Download CSV" - synchronous (keep the request open) way to download saved search data from a dashboard panel.
  • "Export CSV" - asynchronous (using the reporting framework) way to generate a CSV export and download it later from the Reporting API

Describe the bug:
Download CSV

Export CSV

Any additional context:

Reporting Services

Most helpful comment

Hi @tsullivan
I found another difference between "Export CSV" and "Download CSV":
in "Download CSV", the advanced setting "doc_table:hideTimeColumn" is ignored, although it is processed in "Export CSV".

All 9 comments

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

I plan to work on refactoring the CSV export types to resolve the inconsistent issues, and also prepare the code for removing "Download CSV" as an export type. The reason to do that is as we move to task manager, we don't want the complexity of sync and async exports, we just want them to all be async and use the reporting framework (create job / execute job)

Bug with showing/formatting the timefield column

Example: For Metricbeats data, Export CSV output looks like:

"@timestamp","event.dataset"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"

Download CSV output looks like this:

"@timestamp","event.dataset"
"[""2020-06-09T21:48:29.772Z"",""2020-06-09T21:48:29.772Z""]","docker.diskio"

@tsullivan
I add that "Download CSV" generates "Raw data" export, and "Export CSV" generates "Formated Data".
That is particularly important for numbers, where a custom locale is chosen in advanced settings.

Thank you @fbaligand we will work on consistency for the formatting so that both CSV methods show formatted data, and matches what is shown in the UI

Great @tsullivan !

Hi @tsullivan
I found another difference between "Export CSV" and "Download CSV":
in "Download CSV", the advanced setting "doc_table:hideTimeColumn" is ignored, although it is processed in "Export CSV".

Oops, meant to close this.

Was this page helpful?
0 / 5 - 0 ratings