I've been going through this example:
And I used the whole config from the example (beside removing the geoip data)
input {
file {
path => "/home/trueal/elk/support_scripts/*.log"
start_position => beginning
ignore_older => 0
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
}
output {
elasticsearch {
hosts => "localhost:9200"
}
}
While importing the data to elasticsearch works, the created mapping for the field timestamp looks like this:
"timestamp": {
"type": "text",
"norms": false,
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
},
I would expect timestamp to be of type date instead of text to be able to use that field in kibana later on.
I'm not sure if this is a bug in grok or just working as intended.