Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in_http: Honor
keep_time_key
parameter in batch mode.
The in_http plugin supports "batch" mode for sending multiple events in a single HTTP request. The problem is that in_http does not honor the `keep_time_key` option when processing those bulk-insertion requests. This means that "time" key in each record gets discarded unconditionally in batch mode. For example, the following request: $ curl -d '[{"time":1514736000,"key":"foo"}]' http://localhost/ will produces a log record: 2018-01-01 01:00:00.000000000 +0900 : {"key":"foo"} even if the `keep_time_key` option is enabled. This patch fixes this issue by teaching in_http to honor the option value of its parser plugin instance. Signed-off-by: Fujimoto Seiji <[email protected]>
- Loading branch information