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

Deprecation Logs: [interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future. #45885

Closed
sinhagithub opened this issue Sep 17, 2019 · 6 comments
Labels
Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed

Comments

@sinhagithub
Copy link

Kibana version:
7.3.1

Elasticsearch version:
7.3.1

Describe the bug:
Deprecation Logs constantly raised on any activity performed on Visualizations/Dashboards with Date Histogram.

[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.

Note: In Kibana GUI only *interval field is present and not the fixed_interval or calender_interval

Duplicate issue in 7.2.0 -> 43043

Expected behavior:
No deprecation warnings should be raised.

Screenshots (if relevant):
Only Interval field present in Kibana 7.3.1 GUI
image

@legrego legrego added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 18, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@ashisheric
Copy link

It is kind of bug or something else, can anyone please update on this tickets it already 16 day old...

Thanks in advance

@wonderfulcoala
Copy link

wonderfulcoala commented Oct 9, 2019

7.4.0: Just looking at http://kibana:5601/app/monitoring#/elasticsearch produces five log messages each time the graph refreshes. I'd say it's a bug.

es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:42,983Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:42,983Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:42,983Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:42,984Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:42,985Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:43,022Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:43,023Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:43,034Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:43,050Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_coord_01.1.qdqhii55r7pojqajdf53hkwqo
{"type": "deprecation", "timestamp": "2019-10-09T11:14:43,068Z", "level": "WARN", "component": "o.e.d.s.a.b.h.DateHistogramAggregationBuilder", "cluster.name": "<name>", "node.name": "coord_01", "message": "[interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.", "cluster.uuid": "sZ3YnVG3TZu3FZ9QyPHrwA", "node.id": "DtE_Qm8zS3SabUcqHThW5w"  }
es_kibana.1.iu8by5d39pwkipgwipexx8671
{"type":"response","@timestamp":"2019-10-09T11:14:42Z","tags":[],"pid":7,"method":"post","statusCode":200,"req":{"url":"/api/monitoring/v1/clusters/sZ3YnVG3TZu3FZ9QyPHrwA/elasticsearch","method":"post","headers":{"host":"<kibana>:5601","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0","accept":"application/json, text/plain, */*","accept-language":"ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3","accept-encoding":"gzip, deflate","content-type":"application/json;charset=utf-8","kbn-version":"7.4.0","content-length":"81","referer":"http://<kibana>:5601/app/monitoring"},"remoteAddress":"<docker_ip>","userAgent":"<docker_ip>","referer":"http://<kibana>:5601/app/monitoring"},"res":{"statusCode":200,"responseTime":192,"contentLength":9},"message":"POST /api/monitoring/v1/clusters/sZ3YnVG3TZu3FZ9QyPHrwA/elasticsearch 200 192ms - 9.0B"}
es_kibana.1.iu8by5d39pwkipgwipexx8671
{"type":"response","@timestamp":"2019-10-09T11:14:42Z","tags":[],"pid":7,"method":"post","statusCode":200,"req":{"url":"/api/monitoring/v1/clusters/sZ3YnVG3TZu3FZ9QyPHrwA/elasticsearch","method":"post","headers":{"host":"<kibana>:5601","content-length":"81","accept":"application/json, text/plain, */*","origin":"http://<kibana>:5601","kbn-version":"7.4.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36","content-type":"application/json;charset=UTF-8","referer":"http://<kibana>:5601/app/monitoring","accept-encoding":"gzip, deflate","accept-language":"ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7"},"remoteAddress":"<docker_ip>","userAgent":"<docker_ip>","referer":"http://<kibana>:5601/app/monitoring"},"res":{"statusCode":200,"responseTime":209,"contentLength":9},"message":"POST /api/monitoring/v1/clusters/sZ3YnVG3TZu3FZ9QyPHrwA/elasticsearch 200 209ms - 9.0B"}

@timroes
Copy link
Contributor

timroes commented Oct 9, 2019

Closing this, since TSVB will use the non deprecated fixed_interval and calendar_interval from 7.4: #39665

Using interval will also just throw an deprecation warning, there is no negative effect of using the old interval parameter.

Given the warning in monitoring, @chrisronline it seems there are still some places left using interval in 7.4.0 according to @wonderfulcoala comment. Could you perhaps check if some where missed in #37023

@timroes timroes closed this as completed Oct 9, 2019
@chrisronline
Copy link
Contributor

Thanks @timroes! It looks like we missed some in our original efforts: #37023

@chrisronline
Copy link
Contributor

This PR should cover the rest @wonderfulcoala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed
Projects
None yet
Development

No branches or pull requests

7 participants