Skip to content

Commit e01e2c9

Browse files
committed
README
1 parent 614f6ca commit e01e2c9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
11
# fluent-plugin-elasticsearch-timestamp-check
22
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+
```

0 commit comments

Comments
 (0)