I am having a similar issue as posted here:
But my filebeat is running on windows.
The post suggests using filebeat.template-es6x.json. However I cannot find it my downloaded resource.
I had to run a script to export a template even.
I am using filebeat 6.1.2 and elasticsearch 6.x. Using filebeat default configuration.
filebeat.prospectors:
- type: log
enabled: true
paths:
- c:\path
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 3
setup.kibana:
host: "kibana:5601"
output.elasticsearch:
hosts: ["elk:9200"]
The exact error is:
WARN Can not index event (status=400): {"type":"mapper_parsing_exception","reason":"Failed to parse mapping [doc]: Mapping definition for [error] has unsupported parameters: [properties : {code={type=long}, message={norms=false, type=text}, type={ignore_above=1024, type=keyword}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Mapping definition for [error] has unsupported parameters: [properties : {code={type=long}, message={norms=false, type=text}, type={ignore_above=1024, type=keyword}}]"}}
_template/filebeat returns this:
https://pastebin.com/Jb9bAxUS
_template/filebeat-*/_mapping
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/_template/filebeat-*/_mapping] contains unrecognized parameter: [name]"}],"type":"illegal_argument_exception","reason":"request [/_template/filebeat-*/_mapping] contains unrecognized parameter: [name]"},"status":400}