I am importing some data to elasticsearch
after passing it through some lostash
pipelinening.
I am declaring in the template (snippet below) some fields e.g. as ip
and some others as integer
"src": {"type": "ip"},
"dst": {"type":"ip"},
"src_port": {"type": "integer", "index":false},
"dst_port": {"type": "integer"},
However, in my elasticsearch
instance they end up as string
What is more, when retrieving the templates from kibana
the seem to have the appropriate types:
(this from the kibana
dev tools after executing GET /_template/*
"src": {
"type": "ip"
},
"dst": {
"type": "ip"
},
"src_port": {
"type": "integer",
"index": false
},
"dst_port": {
"type": "integer"
},