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

Elasticsearch 7 default mapping deprecated and no longer supported #5780

Closed
samcro1967 opened this issue Apr 29, 2019 · 2 comments · Fixed by #6053
Closed

Elasticsearch 7 default mapping deprecated and no longer supported #5780

samcro1967 opened this issue Apr 29, 2019 · 2 comments · Fixed by #6053
Labels
area/elasticsearch feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@samcro1967
Copy link

samcro1967 commented Apr 29, 2019

I updated to the latest version of the docker container sebp/elk on 4/17/2019. Since then I have been unable to get Telegraf to start on my host. It fails connecting to Elasticsearch. I also get a 502 error connecting to Elasticsearch from Grafana. I have removed all containers and images and re-pulled. I also deleted all data in mount points to start clean and still am unable to connect. The only change I am aware of that was made on 4/17/2019 was the upgrade of sebp/elk.

Here is the link I got from the Elasticsearch forum to its deprecation announcement"
https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#_the_literal__default__literal_mapping_is_no_longer_allowed

I am running the following versions:
Grafana 6.1.4 (docker container)
Elasticsearch 7.0.0
Telegraf is 1.10.3 (runs locally on host)
InfluxDB 1.7.6 (runs locally on host)
Docker 18.09.2
Windows 10.0.17763.437

From http://localhost:9200 I get

{
  "name": "elk",
  "cluster_name": "elasticsearch",
  "cluster_uuid": "ov0z53EQQRyVr2DmDETqCg",
  "version": {
    "number": "7.0.0",
    "build_flavor": "default",
    "build_type": "tar",
    "build_hash": "b7e28a7",
    "build_date": "2019-04-05T22:55:32.697037Z",
    "build_snapshot": false,
    "lucene_version": "8.0.0",
    "minimum_wire_compatibility_version": "6.7.0",
    "minimum_index_compatibility_version": "6.0.0-beta1"
  },
  "tagline": "You Know, for Search"
}

Grafana config for Elasticsearch data source config
image

Telegraf log:

2019-04-27T12:31:04Z I! Loaded inputs: win_perf_counters docker
2019-04-27T12:31:04Z I! Loaded aggregators:
2019-04-27T12:31:04Z I! Loaded processors:
2019-04-27T12:31:04Z I! Loaded outputs: influxdb elasticsearch
2019-04-27T12:31:04Z I! Tags enabled: host=DESKTOP-1ND49C8
2019-04-27T12:31:04Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"DESKTOP-1ND49C8", Flush Interval:10s
2019-04-27T12:31:04Z I! Elasticsearch version: 7.0.0
2019-04-27T12:31:04Z E! [agent] Failed to connect to output elasticsearch, retrying in 15s, error was 'Elasticsearch failed to create index template telegraf : elastic: Error 400 (Bad Request): Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [ default : {dynamic_templates=[{tags={path_match=tag. , mapping={ignore_above=512, type=keyword}, match_mapping_type=string}}, {metrics_long={mapping={index=false, type=float}, match_mapping_type=long}}, {metrics_double={mapping={index=false, type=float}, match_mapping_type=double}}, {text_fields={mapping={norms=false}, match= }}], _all={enabled=false}, properties={@timestamp={type=date}, measurement_name={type=keyword}}}] [type=mapper_parsing_exception]'
``
@danielnelson danielnelson added area/elasticsearch feature request Requests for new plugin and for new features to existing plugins labels Apr 29, 2019
@ricardosdias
Copy link

Same problem here.

1 similar comment
@billy-he
Copy link

Same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/elasticsearch feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants