Skip to content

Commit

Permalink
Elasticsearch 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nsano-rururu committed Apr 27, 2022
1 parent 792074a commit a57942c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"core-js": "^3.21.1",
"cron-ui": "1.0.3",
"debounce": "1.2.1",
"echarts": "5.3.1",
"echarts": "5.3.2",
"element-ui": "2.15.7",
"emoji-mart-vue": "2.6.6",
"js-yaml": "4.1.0",
Expand Down
6 changes: 5 additions & 1 deletion src/components/ESChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,15 @@ export default {
.unix();
}
// Elasticsearch 8 support
// The date_histogram aggregation’s interval parameter is no longer valid.
// interval to fixed_interval.
// https://www.elastic.co/guide/en/elasticsearch/reference/8.1/migrating-8.0.html
return {
by_minute: {
date_histogram: {
field: this.timeField,
interval: intervalFromTimeframe(this.interval),
fixed_interval: intervalFromTimeframe(this.interval),
min_doc_count: 0,
extended_bounds: {
min: gte,
Expand Down

0 comments on commit a57942c

Please sign in to comment.