byldozer
(Victor)
December 11, 2018, 9:31am
1
Hi Everyone,
got a problem with index size reducing and data optimization.
Problems for now:
by default all text fields duplicated with fieldname and fieldname.keyword. How I can leave just fieldname ? without fieldname.keyword;
fields with "type": "keyword" do not have keywords in Kibana filter search. If I got fieldname and fieldname.keyword Kibana filter search works fine;
I found recomendation for ES 5
"properties": {
"@version ": {
"type": "keyword",
"include_in_all": false
},
BUT "include_in_all" removed in ES 6.4
I would be grateful for your help
This is a good place to start.
byldozer
(Victor)
December 11, 2018, 12:21pm
3
thanks, but it was not a good advice.
I found solution -
GET /_template/logs
{
"logs": {
"order": 0,
"index_patterns": [
"log-*"
],
"settings": {
"index": {
"number_of_shards": "1"
}
},
"mappings": {
"doc": {
"properties": {
"@timestamp ": {
"type": "date"
},
"Method": {
"type": "keyword",
"ignore_above": 256
},
"Service": {
"type": "keyword",
"ignore_above": 256
},
"User": {
"type": "keyword",
"ignore_above": 256
},
"body": {
"type": "text",
"norms": false
},
"ip": {
"type": "keyword",
"ignore_above": 256
}
},
"_all": {
"enabled": false
},
"dynamic_templates": [
{
"string_fields": {
"match_mapping_type": "string",
"mapping": {
"type": "keyword",
"norms": false
}
}
}
]
}
},
"aliases": {}
}
}
maybe I can optimise it more?
byldozer
(Victor)
December 11, 2018, 12:44pm
4
byldozer:
ip
Notice another problem - ip does not have pop up values in Kibana.
Any ideas why?
system
(system)
Closed
January 8, 2019, 12:45pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.