-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kibana 7.12 reporting - blank csv #100470
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
Hi, is it possible that there is a conflict in the mapping of the data fields? For example, if there are multiple mappings applied to the index and both define a different mapping for a particular field? If so, that is fixed in 7.13 with #88303 |
ping @laurentiubanica for feedback |
Hi, |
Hi, There is only one template that applies to the index from which we are trying to run the reports. When running the reports, from Discover, we choose the index, we save the search and then we select Share, to run the report. However, when we use export to .csv, from various visualizations, the data get populated in the .csv . Haven't upgraded yet to 7.13. We are using Kibana 7.12, on docker, same version of cluster. Thank you, |
Forgot to mention that this occurred after we have set up the encryption between the nodes, to be able to use the alerting capability. |
Hi, This is a sample backend log from the Kibana docker: {"type":"response","@timestamp":"2021-06-07T18:02:37+00:00","tags":[],"pid":951,"method":"post","statusCode":200,"req":{"url":"/api/ui_counters/_report","method":"post","headers":{"connection":"Keep-Alive","proxy-connection":"Keep-Alive","host":"servers","content-length":"150","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","accept":"/","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://kibanaurl/app/discover","content-type":"application/json","kbn-version":"7.13.1","kbn-system-request":"true","origin":"https://kibanaurl"},"remoteAddress":"172.17.0.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","referer":"https://kibanaurl/app/discover"},"res":{"statusCode":200,"responseTime":950,"contentLength":15},"message":"POST /api/ui_counters/_report 200 950ms - 15.0B"} |
Hi @laurentiubanica the sample log you provided logs an unrelated HTTP request. CSV generation happens asynchronously a background job, not part of a request. It would help to share the logs that have the
|
Hi, This is the POST URL: Now, I'm looking for sample logs that match reporting or csv. |
This would be a sample log related to the last report I ran: {"type":"log","@timestamp":"2021-06-15T14:26:06+00:00","tags":["info","plugins","reporting","queue-job"],"pid":952,"message":"Queued csv_searchsource report: kpy51o2600qgdfc2101bsx4h"} |
{"type":"response","@timestamp":"2021-06-15T14:26:08+00:00","tags":[],"pid":952,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list?page=0&ids=kpy51o2600qgdfc2101bsx4h","method":"get","headers":{"connection":"Keep-Alive","proxy-connection":"Keep-Alive","host":"servers","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","accept":"/","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://kibanalink/app/discover","content-type":"application/json","kbn-version":"7.13.1"},"remoteAddress":"172.17.0.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","referer":"https://kibanalink/app/discover"},"res":{"statusCode":200,"responseTime":36,"contentLength":2922},"message":"GET /api/reporting/jobs/list?page=0&ids=kpy51o2600qgdfc2101bsx4h 200 36ms - 2.9KB"} {"type":"response","@timestamp":"2021-06-15T14:26:10+00:00","tags":[],"pid":952,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/download/kpy51o2600qgdfc2101bsx4h","method":"get","headers":{"connection":"Keep-Alive","proxy-connection":"Keep-Alive","host":"servers","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","upgrade-insecure-requests":"1"},"remoteAddress":"172.17.0.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0"},"res":{"statusCode":200,"responseTime":26,"contentLength":1},"message":"GET /api/reporting/jobs/download/kpy51o2600qgdfc2101bsx4h 200 26ms - 1.0B"} |
I just noticed that your
I parsed the search that Discover is sending to Reporting as:
Does the |
Hi, Then, I changed the xpack.reporting.csv.scroll.size to 100 and ran a report for the last 15 minutes. Then, I uncommented the following line: Then I changed to xpack.reporting.csv.scroll.size to 100. The result was a csv with 267k lines with the following incorrect format: After that, I commented back xpack.reporting.csv.maxSizeBytes and modified xpack.reporting.csv.scroll.size to 400 and ran a report for last 15 minutes. The result was a single line with the following info: @timestamp,"_source". Changed xpack.reporting.csv.scroll.size to 300. Csv was empty. The same for 200. When I changed back to the settings that previously worked correctly: I really don't understand what's going on. |
Hi, how much memory is available in the system? Is it possible to add more memory? |
Hi, |
Glad to hear things are working out! |
Hi,
We are running Kibana 7.12.0 on docker with a Nginx reverse proxy in front of it.
The version of the Elastic cluster is also 7.12.0.
After I save the search in Discovery section and do Share, the status of the report shows as completed. However, the downloaded .csv contains only the name of the fields on the first row. The data shown in Discovery is not in the .csv.
These are the reporting settings in kibana.yml:
xpack.reporting.enabled: true
xpack.reporting.queue.timeout: 600000
xpack.reporting.kibanaServer.port: 443
xpack.reporting.kibanaServer.protocol: https
xpack.reporting.kibanaServer.hostname: 0.0.0.0
xpack.reporting.encryptionKey: "..."
xpack.reporting.csv.maxSizeBytes: 1048576000
xpack.reporting.csv.scroll.size: 1048576000
xpack.reporting.csv.scroll.duration: 10m
Can you help us identify the issues ?
Thank you
The text was updated successfully, but these errors were encountered: