I am using the version 6.4.2 of filebeat and elasticsearch. I am trying to upload the template into elasticsearch using the setup command. It works fine but when I saw the generated template (also through the filebeat export command) the fields under key: log are missing. The only generated mapping is:
"log": {
"properties": {
"level": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
It is missing the other properties like message e.t.c.
And because of this when I am sending docker logs the log.message field is getting indexed as a keyword type where as it should be text.