Open rjbma opened 2 years ago
I just came across this same issue. The problem is here:
Compare that to how the index output determines the time to use:
The fix would be to refactor this logic out and allow both to call it.
Also in that second snippet, the precedence is @timestamp
> time_key > msgpack time (I think that means the message time according to kafka). I think it makes more sense to be time_key > @timestamp
> msgpack (most explicit to least).
Hi I have the same problem. Is there any solution ?
(check apply)
Problem
The
time_key
configuration parameter doesn't seem to be working with the elasticsearch_data_stream plugin. ...Steps to replicate
Expected Behavior or What you need to ask
The source data has a field named
REQ_START
containing dates. Since I'm using thetime_key
parameter, I was expecting the@timestamp
field to be filled fromREQ_START
. However, it contains the date when the document was created in elasticsearch instead.This is working correctly when the output is an index or index alias (i.e., when using
@type elasticsearch
instead).This may be related to #967, but doesn't seem like the same issue. ...
Using Fluentd and ES plugin versions