I seem to be having an issue with mapping in my template. I have a field with data type "text", when I look into the Kibana SIEM console I receive the following error for several of my fields:
[illegal_argument_exception] Fielddata is disabled on text fields by default. Set fielddata=true on [host.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
However when I look up one of these fields I see that I have a keyword field mapped to each "text" type
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
Exactly where do I need to add the type:keyword to resolve this?
I am attempting to update the mapping as you suggested, but it appears, my query is malformed, but I can't spot the error. Would you mind having a look?
I mean that when I'm using Auditbeat with all the default values, that I set up auditbeat as written in the documentation, it installs everything for me, including the right templates for auditbeat.
Installed version 7.4.2. Installed on Redhat if that matters, pretty much run it straight out of the box. Was looking to see what came through so I could start figuring out what I wanted to see, what I didn't, that sort of thing.
So I added the template and set the above to mappings, I reindexed everything, but I think I have an issue with getting the correct syntax to update the field host.name. Any thoughts?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.