Skip to content
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

Download logs from a dashboard does not work #53479

Closed
SSvilen opened this issue Aug 9, 2022 · 5 comments
Closed

Download logs from a dashboard does not work #53479

SSvilen opened this issue Aug 9, 2022 · 5 comments
Labels
datasource/Loki needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc

Comments

@SSvilen
Copy link

SSvilen commented Aug 9, 2022

Describe the bug
I have a dashboard with a logs panel, where logs are being displayed. If there are multiple data frames and I go to Inspect - Data and click Download logs, only the last data frame is being downloaded, regardless which data frame I select.
Download CSV seems to work normally.

To Reproduce
Steps to reproduce the behavior:

  1. Create dashboard with log panel
  2. Build a loki query, that contains data with different unique labels
  3. Try to download the data

Expected behavior
Download logs should work exaclty like Download CSV.

@dannykopping dannykopping transferred this issue from grafana/loki Aug 9, 2022
@dannykopping
Copy link
Contributor

@SSvilen just be aware I have transferred this issue to grafana/grafana, since Loki is just the database and not the Grafana plugin.

@SSvilen
Copy link
Author

SSvilen commented Aug 9, 2022

@dannykopping yeah, I thought that it may be belongs to grafana repo, but was not sure where the plugin is being developed.

@usmangt
Copy link
Contributor

usmangt commented Aug 12, 2022

Hi @SSvilen,

Thanks for opening this case.

I tried to reproduce it but seems to be working fine. Can you please try to reproduce this same case on https://play.grafana.org/ ?

@usmangt usmangt added needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc datasource/Loki labels Aug 12, 2022
@gabor
Copy link
Contributor

gabor commented Aug 15, 2022

hi @SSvilen, currently the two buttons works slightly differently, download-csv downloads the selected dataframe, and download-logs downloads all the data (all the dataframes).

i agree this is confusing, i created an issue specially for this problem at #53742

for now, as a workaround, if you upgrade to grafana9, loki logs will always be in a single dataframe, so both the download-csv and the download-logs buttons will work the same way in that case. i hope that helps.

@gabor gabor closed this as completed Aug 15, 2022
@SSvilen
Copy link
Author

SSvilen commented Aug 17, 2022

@gabor great, thanks.
If Grafana 9 uses single dataframe, that would do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Loki needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc
Projects
None yet
Development

No branches or pull requests

4 participants