Giter VIP home page Giter VIP logo

Comments (2)

legrego avatar legrego commented on August 28, 2024

@tjorim thanks for the report -- sorry this isn't working correctly for you. Based on my testing this appears to be a compatibility issue with 7.0. I have an issue open to make this component work with 7.x (#57), so I'll add this issue to that list.

For posterity, the underlying issue appears to be with the index template/mapping. On startup on 7.0, I get the following before seeing the issue you reported:

Log Details (ERROR)
Fri Mar 29 2019 08:19:34 GMT-0400 (Eastern Daylight Time)
Error creating index template: RequestError(400, 'mapper_parsing_exception', 'Root mapping definition has unsupported parameters:  [doc : {dynamic=strict, properties={agent={properties={name={ignore_above=1024, type=keyword}, id={ignore_above=1024, type=keyword}, ephemeral_id={ignore_above=1024, type=keyword}, type={ignore_above=1024, type=keyword}, version={ignore_above=1024, type=keyword}}}, @timestamp={type=date}, ecs={properties={version={ignore_above=1024, type=keyword}}}, host={properties={geo={properties={region_iso_code={ignore_above=1024, type=keyword}, continent_name={ignore_above=1024, type=keyword}, city_name={ignore_above=1024, type=keyword}, country_iso_code={ignore_above=1024, type=keyword}, country_name={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, location={type=geo_point}, region_name={ignore_above=1024, type=keyword}}}, hostname={ignore_above=1024, type=keyword}, os={properties={kernel={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, family={ignore_above=1024, type=keyword}, version={ignore_above=1024, type=keyword}, platform={ignore_above=1024, type=keyword}, full={ignore_above=1024, type=keyword}}}, ip={type=ip}, name={ignore_above=1024, type=keyword}, id={ignore_above=1024, type=keyword}, type={ignore_above=1024, type=keyword}, user={properties={full_name={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, id={ignore_above=1024, type=keyword}, hash={ignore_above=1024, type=keyword}, email={ignore_above=1024, type=keyword}}}, mac={ignore_above=1024, type=keyword}, architecture={ignore_above=1024, type=keyword}}}, hass={type=object, properties={geo={type=object, properties={location={type=geo_point}}}, domain={ignore_above=1024, type=keyword}, attributes={dynamic=true, type=object}, entity_id={ignore_above=1024, type=keyword}, object_id={ignore_above=1024, type=keyword}, value={fields={keyword={ignore_above=2048, type=keyword}, float={ignore_malformed=true, type=float}}, type=text}}}, event={properties={severity={type=long}, original={ignore_above=1024, index=false, type=keyword, doc_values=false}, risk_score={type=float}, timezone={ignore_above=1024, type=keyword}, created={type=date}, kind={ignore_above=1024, type=keyword}, module={ignore_above=1024, type=keyword}, start={type=date}, type={ignore_above=1024, type=keyword}, duration={type=long}, risk_score_norm={type=float}, action={ignore_above=1024, type=keyword}, end={type=date}, id={ignore_above=1024, type=keyword}, category={ignore_above=1024, type=keyword}, dataset={ignore_above=1024, type=keyword}, hash={ignore_above=1024, type=keyword}, outcome={ignore_above=1024, type=keyword}}}, tags={ignore_above=1024, type=keyword}}}]')
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/elastic/__init__.py", line 432, in _create_index_template
    "all-hass-events": {}
  File "/srv/homeassistant/lib/python3.5/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/elasticsearch/client/indices.py", line 442, in put_template
    name), params=params, body=body)
  File "/srv/homeassistant/lib/python3.5/site-packages/elasticsearch/transport.py", line 318, in perform_request
    status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/elasticsearch/connection/http_urllib3.py", line 186, in perform_request
    self._raise_error(response.status, raw_data)
  File "/srv/homeassistant/lib/python3.5/site-packages/elasticsearch/connection/base.py", line 125, in _raise_error
    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'Root mapping definition has unsupported parameters:  [doc : {dynamic=strict, properties={agent={properties={name={ignore_above=1024, type=keyword}, id={ignore_above=1024, type=keyword}, ephemeral_id={ignore_above=1024, type=keyword}, type={ignore_above=1024, type=keyword}, version={ignore_above=1024, type=keyword}}}, @timestamp={type=date}, ecs={properties={version={ignore_above=1024, type=keyword}}}, host={properties={geo={properties={region_iso_code={ignore_above=1024, type=keyword}, continent_name={ignore_above=1024, type=keyword}, city_name={ignore_above=1024, type=keyword}, country_iso_code={ignore_above=1024, type=keyword}, country_name={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, location={type=geo_point}, region_name={ignore_above=1024, type=keyword}}}, hostname={ignore_above=1024, type=keyword}, os={properties={kernel={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, family={ignore_above=1024, type=keyword}, version={ignore_above=1024, type=keyword}, platform={ignore_above=1024, type=keyword}, full={ignore_above=1024, type=keyword}}}, ip={type=ip}, name={ignore_above=1024, type=keyword}, id={ignore_above=1024, type=keyword}, type={ignore_above=1024, type=keyword}, user={properties={full_name={ignore_above=1024, type=keyword}, name={ignore_above=1024, type=keyword}, id={ignore_above=1024, type=keyword}, hash={ignore_above=1024, type=keyword}, email={ignore_above=1024, type=keyword}}}, mac={ignore_above=1024, type=keyword}, architecture={ignore_above=1024, type=keyword}}}, hass={type=object, properties={geo={type=object, properties={location={type=geo_point}}}, domain={ignore_above=1024, type=keyword}, attributes={dynamic=true, type=object}, entity_id={ignore_above=1024, type=keyword}, object_id={ignore_above=1024, type=keyword}, value={fields={keyword={ignore_above=2048, type=keyword}, float={ignore_malformed=true, type=float}}, type=text}}}, event={properties={severity={type=long}, original={ignore_above=1024, index=false, type=keyword, doc_values=false}, risk_score={type=float}, timezone={ignore_above=1024, type=keyword}, created={type=date}, kind={ignore_above=1024, type=keyword}, module={ignore_above=1024, type=keyword}, start={type=date}, type={ignore_above=1024, type=keyword}, duration={type=long}, risk_score_norm={type=float}, action={ignore_above=1024, type=keyword}, end={type=date}, id={ignore_above=1024, type=keyword}, category={ignore_above=1024, type=keyword}, dataset={ignore_above=1024, type=keyword}, hash={ignore_above=1024, type=keyword}, outcome={ignore_above=1024, type=keyword}}}, tags={ignore_above=1024, type=keyword}}}]')

from homeassistant-elasticsearch.

legrego avatar legrego commented on August 28, 2024

@tjorim I opened a PR for ES7 support. If you get a chance, feel free to test it out before I merge it. I tested on my own ES6 and ES7 clusters, but the more the merrier!
#61

from homeassistant-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.