Kibana version: 7.x
Terms:
Describe the bug:
Download CSV
Export CSV
Any additional context:
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".
Replaced this issue with: https://github.com/elastic/kibana/issues/34377
Oops, meant to close this.
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".