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

Kibana 7.6.1 : Sentinl not able to create watcher_alaram_00001 index due to parsing exception #789

Open
3 tasks
prabhakartalari opened this issue Dec 24, 2020 · 2 comments

Comments

@prabhakartalari
Copy link

System Details

Versions

Type Version
Kibana 7.6.1
Elasticsearc 7.6.1
Server OS windows 10
Browser google chrome

Original Install Method

  • Release pkg link
  • Gulp
  • Source
  • Other:
  • Installed sentinl with below command after downloaded the zip
  • .\bin\kibana-plugin.bat install file:\C:\Users\username\kibana-7.6.1-windows-x86_64\plugins\sentinl-v7.6.1.zip

Bug Details Not able to create watcher_alaram_00001 index due to parsing excepting

Bug Description Getting below error while starting up the kibana

log [10:49:15.099] [error][Sentinl][init] start: Error: init indices: Error: create index: [mapper_parsing_exception] Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}] :: {"path":"/_template/sentinl_watcher_alarms","query":{},"body":"{"index_patterns":"watcher_alarms*","mappings":{"sentinl-alarm":{"properties":{"payload":{"type":"object","dynamic":"true"},"attachment":{"type":"binary"},"error":{"type":"boolean"},"report":{"type":"boolean"},"watcher":{"type":"text"},"action":{"type":"text"},"level":{"type":"text"},"message":{"type":"text"},"@timestamp":{"type":"date"}}}},"settings":{"index":{"lifecycle":{"name":"watcher-alarms","rollover_alias":"watcher_alarms"}}}}","statusCode":400,"response":"{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]"}},"status":400}"}

Steps to Reproduce

  1. Install OSS ELK 7.6.1
  2. Install sentinl 7.6.1 plugin
  3. start kibana

Expected Behavior

Sample of data you have in Elasticsearch

Full Watcher JSON

Screenshots (if relevant)

Errors in Browser Console (if relevant)

Kibana logs and/or server output (attached if relevant)

Any additional information

Below is the sentinl configuration which am using in kibana.yaml

sentinl:
es:
host: localhost
port: 9200
rollover_index: true
timefield: '@timestamp'
alarm_index: watcher_alarms
alarm_type: sentinl-alarm
script_type: sentinl-script

settings:
authentication:
enabled: true
impersonate: true
username: 'elastic'
password: 'xxxxx'

Could some one help me how can i resolve this issue

@ashnayder
Copy link

I got the same error message on CentOS 7.8
Kibana, elasticsearch and sentinl are version 7.6.1.

Relevant kibana stdout log entries are below:

{"type":"log","@timestamp":"2020-12-29T03:50:00Z","tags":["error","Sentinl","init"],"pid":16074,"message":"start: Error: init indices: Error: create index: [mapper_parsing_exception] Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}] :: {"path":"/_template/sentinl_watcher_alarms","query":{},"body":"{\"index_patterns\":\"watcher_alarms*\",\"mappings\":{\"sentinl-alarm\":{\"properties\":{\"payload\":{\"type\":\"object\",\"dynamic\":\"true\"},\"attachment\":{\"type\":\"binary\"},\"error\":{\"type\":\"boolean\"},\"report\":{\"type\":\"boolean\"},\"watcher\":{\"type\":\"text\"},\"action\":{\"type\":\"text\"},\"level\":{\"type\":\"text\"},\"message\":{\"type\":\"text\"},\"@timestamp\":{\"type\":\"date\"}}}},\"settings\":{\"index\":{\"lifecycle\":{\"name\":\"watcher-alarms\",\"rollover_alias\":\"watcher_alarms\"}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"mapper_parsing_exception\",\"reason\":\"Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]\"}],\"type\":\"mapper_parsing_exception\",\"reason\":\"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]\",\"caused_by\":{\"type\":\"mapper_parsing_exception\",\"reason\":\"Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]\"}},\"status\":400}"}"}

Thank you very much for your support

@rsingh2411
Copy link

Same issue, while. using Kibana, elasticsearch and sentinl are version 7.6.1.
log [12:39:39.905] [error][Sentinl][init] start: Error: init indices: Error: create index: [mapper_parsing_exception] Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}] :: {"path":"/_template/sentinl_watcher_alarms","query":{},"body":"{"index_patterns":"watcher_alarms*","mappings":{"sentinl-alarm":{"properties":{"payload":{"type":"object","dynamic":"true"},"attachment":{"type":"binary"},"error":{"type":"boolean"},"report":{"type":"boolean"},"watcher":{"type":"text"},"action":{"type":"text"},"level":{"type":"text"},"message":{"type":"text"},"@timestamp":{"type":"date"}}}},"settings":{"index":{"lifecycle":{"name":"watcher-alarms","rollover_alias":"watcher_alarms"}}}}","statusCode":400,"response":"{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [sentinl-alarm : {properties={watcher={type=text}, @timestamp={type=date}, attachment={type=binary}, payload={dynamic=true, type=object}, level={type=text}, report={type=boolean}, action={type=text}, error={type=boolean}, message={type=text}}}]"}},"status":400}"}

@ashnayder Is there any workaround available.

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

3 participants