Travis
April 14, 2021, 7:46am
1
Hello all !
I'm trying to understand "enable: false" mapping setting
I don't want to index a specific field : syslog_timestamp
To achieve this, I mapped this field with "enabled: false" like this (extract of Index management -> index -> Mappings in Kibana) :
{
"mappings": {
"_doc": {
"dynamic": "false",
"properties": {
"@timestamp": {
"type": "date"
},
"syslog_timestamp": {
"type": "object",
"enabled": false
},
"type": {
"type": "keyword"
}
}
}
}
}
When looking at my log in Kibana, I can see this field :
Question : Is it normal I still can see this field as he is not enabled ?
Documentation says that :
The JSON can still be retrieved from the _source
field, but it is not searchable or stored in any other way
For me, "not stored" means field can't be retrived in Kibana
Thanks for your help !
warkolm
(Mark Walkom)
April 14, 2021, 8:19am
2
What happens if you refresh the mapping there in Kibana, does that warning go away?
Travis
April 14, 2021, 8:25am
3
No...I refreshed and still there. I deleted index pattern and re created it but still there too
In index pattern, I can't see the field but I can see it in Discover
warkolm
(Mark Walkom)
April 14, 2021, 8:27am
4
I may be wrong, but I guess Kibana is parsing the _source
and showing it. And even after refreshing it shows that warning as it has no mapping for it.
So it's stored in _source
, but not mapped and not searchable.
Travis
April 14, 2021, 8:30am
5
Yes indeed he is not seachable I tested it.
I guees there is no way to tell to Kibana to not show fields which are not enbabled ?
warkolm
(Mark Walkom)
April 14, 2021, 8:31am
6
I am not sure. It might be worth creating a new topic in #elastic-stack:kibana and asking the team there.
Travis
April 14, 2021, 8:34am
7
Ok I will do that. Thank you @warkolm !
1 Like
system
(system)
Closed
May 12, 2021, 8:35am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.