To be perfectly honest, I'm not really sure to understand my problem properly
So here it is. I get events from an Oracle database (with jdbc input). When I query this database (with SQL Developer), I get the date in my locale GMT+2 timezone (I presume) - e.g. 02/10/18 16:11:05,502000000
.
My ELK stack is in UTC
bash-4.2$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 25 Aug 4 22:05 /etc/localtime -> ../usr/share/zoneinfo/UTC
And so, when I get my events in elastic, the conversion is not made, I get 2018-10-02T16:11:05.502Z
(which makes 18:11
in my timezone).
So I try to force my timezone with the Date filter:
date {
match => [ "my_date", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ]
timezone => "Europe/Paris"
target => "my_date_paris"
}
... but I get _dateparsefailure
errors!
Here is my field mapping:
{
"task": {
"mappings": {
"_doc": {
"properties": {
"my_date": {
"type": "date"
}
}
}
}
}
}
So what do I do wrong?