File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1
1
# fluent-plugin-elasticsearch-timestamp-check
2
2
Fluent plugin to ensure @timestamp is in correct format for elasticsearch
3
+
4
+ ## Install
5
+
6
+ ``` bash
7
+ gem install fluent-plugin-elasticsearch-timestamp-check
8
+ ```
9
+
10
+ ## Description
11
+
12
+ The purpose of this filter is to make sure the @timestamp field exists in the
13
+ record which is necessary for the record to be indexed properly by
14
+ elasticsearch.
15
+
16
+ * If * @timestamp * field already exists, it will ensure the format is correct
17
+ by parse and convert to format '%Y-%m-%dT%H:%M:%S%z'.
18
+
19
+ * If a field named * timestamp* exists, it will parse that field and conver it to
20
+ format '%Y-%m-%dT%H:%M:%S%z' then store it in * @timestamp * field.
21
+
22
+ * If neither of the above field exists, it will insert current time in
23
+ '%Y-%m-%dT%H:%M:%S%z' format as the * @timestamp * field.
24
+
25
+ ## Usage
26
+
27
+ ```
28
+ <filter **>
29
+ type elasticsearch_timestamp_check
30
+ </filter>
31
+ ```
You can’t perform that action at this time.
0 commit comments