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

Dashboard date_histogram error with elasticsearch 8.0 or higher #356

Open
ykcab opened this issue Sep 26, 2022 · 5 comments
Open

Dashboard date_histogram error with elasticsearch 8.0 or higher #356

ykcab opened this issue Sep 26, 2022 · 5 comments

Comments

@ykcab
Copy link
Contributor

ykcab commented Sep 26, 2022

When using Elastic search version =>8.0, the is an error for the date interval
Elasticsearch err:[1:512] [date_histogram] unknown field [interval] did you mean [fixed_interval]?

Is there an updated query (json) file? or any configuration I should fix either in grafana or elasticsearch?
Screen Shot 2022-09-26 at 1 12 32 PM

@TafkaMax
Copy link

Same issue.

@ykcab
Copy link
Contributor Author

ykcab commented Oct 17, 2022

Good news, I believe to have fixed this issue. I am testing this out with Elastic 8.3.4 & 8.4 and Grafana 9.0

@msizec
Copy link

msizec commented Nov 8, 2022

hi
I found out that some panels won't work anymore then, sayaing the interval must be non null non empty
Some panels are OK, some are not.

@andryushchenko
Copy link

image
Same here

@dijitali
Copy link

dijitali commented Jun 1, 2023

A workaround has been outlined in debricked/dmarc-visualizer#41 (comment):

RUN sed -i 's/fixed_interval/interval/g' /var/lib/grafana/dashboards/Grafana-DMARC_Reports.json

Looks like this was partly fixed with #366 but there are a few remaining places needing changing to support elasticsearch v8 breaking changes:

The date_histogram aggregation’s interval parameter is no longer valid.

Details
It is now an error to specify the interval parameter to the date_histogram aggregation or the composite date_histogram source. Instead, please use either calendar_interval or fixed_interval as appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants