Skip to content

Commit

Permalink
pack: output: added java_sql_timestamp, a format string used by amazo…
Browse files Browse the repository at this point in the history
…n athena (fluent#708)

Signed-off-by: Marcos Diez <[email protected]>
  • Loading branch information
marcosdiez authored Mar 10, 2022
1 parent 9b18f82 commit acbe3ad
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pipeline/outputs/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **http** output plugin allows to flush your records into a HTTP endpoint. Fo
| header\_tag | Specify an optional HTTP header field for the original message tag. | |
| header | Add a HTTP header key/value pair. Multiple headers can be set. | |
| json\_date\_key | Specify the name of the time key in the output record. To disable the time key just set the value to `false`. | date |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_ and _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) | double |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_, _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) and _java_sql_timestamp_ (eg: _2018-05-30 09:39:52.000681_) | double |
| gelf\_timestamp\_key | Specify the key to use for `timestamp` in _gelf_ format | |
| gelf\_host\_key | Specify the key to use for the `host` in _gelf_ format | |
| gelf\_short\_message\_key | Specify the key to use as the `short` message in _gelf_ format | |
Expand Down
2 changes: 1 addition & 1 deletion pipeline/outputs/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ See [here](https://github.com/fluent/fluent-bit-docs/tree/43c4fe134611da471e706b
| region | The AWS region of you S3 bucket | us-east-1 |
| bucket | S3 Bucket name | None |
| json_date_key | Specify the name of the time key in the output record. To disable the time key just set the value to `false`. | date |
| json_date_format | Specify the format of the date. Supported formats are _double_, _epoch_ and _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) | iso8601 |
| json_date_format | Specify the format of the date. Supported formats are _double_, _epoch_, _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) and _java_sql_timestamp_ (eg: _2018-05-30 09:39:52.000681_) | iso8601 |
| total_file_size | Specifies the size of files in S3. Maximum size is 50G, minimim is 1M. | 100M |
| upload_chunk_size | The size of each 'part' for multipart uploads. Max: 50M | 5,242,880 bytes |
| upload_timeout | Whenever this amount of time has elapsed, Fluent Bit will complete an upload and create a new file in S3. For example, set this value to 60m and you will get a new file every hour. | 10m |
Expand Down
2 changes: 1 addition & 1 deletion pipeline/outputs/standard-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The **stdout** output plugin allows to print to the standard output the data rec
| :--- | :--- | :--- |
| Format | Specify the data format to be printed. Supported formats are _msgpack_ _json_, _json\_lines_ and _json\_stream_. | msgpack |
| json\_date\_key | Specify the name of the time key in the output record. To disable the time key just set the value to `false`. | date |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_ and _iso8601_ \(eg: _2018-05-30T09:39:52.000681Z_\) | double |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_, _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) and _java_sql_timestamp_ (eg: _2018-05-30 09:39:52.000681_) | double |
| Workers | Enables dedicated thread(s) for this output. Default value is set since version 1.8.13. For previous versions is 0. | 1 |

### Command Line
Expand Down
2 changes: 1 addition & 1 deletion pipeline/outputs/tcp-and-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The **tcp** output plugin allows to send records to a remote TCP server. The pay
| Port | TCP Port of the target service. | 5170 |
| Format | Specify the data format to be printed. Supported formats are _msgpack_ _json_, _json\_lines_ and _json\_stream_. | msgpack |
| json\_date\_key | Specify the name of the time key in the output record. To disable the time key just set the value to `false`. | date |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_ and _iso8601_ \(eg: _2018-05-30T09:39:52.000681Z_\) | double |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_, _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) and _java_sql_timestamp_ (eg: _2018-05-30 09:39:52.000681_) | double |
| Workers | Enables dedicated thread(s) for this output. Default value is set since version 1.8.13. For previous versions is 0. | 2 |

## TLS Configuration Parameters
Expand Down
4 changes: 2 additions & 2 deletions pipeline/outputs/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The **websocket** output plugin allows to flush your records into a WebSocket en
| URI | Specify an optional HTTP URI for the target websocket server, e.g: /something | / |
| Format | Specify the data format to be used in the HTTP request body, by default it uses _msgpack_. Other supported formats are _json_, _json\_stream_ and _json\_lines_ and _gelf_. | msgpack |
| json\_date\_key | Specify the name of the date field in output | date |
| json\_date\_format | Specify the format of the date. Supported formats are _double_ and _iso8601_ \(eg: _2018-05-30T09:39:52.000681Z_\) | double |
| json\_date\_format | Specify the format of the date. Supported formats are _double_, _epoch_, _iso8601_ (eg: _2018-05-30T09:39:52.000681Z_) and _java_sql_timestamp_ (eg: _2018-05-30 09:39:52.000681_) | double |

## Getting Started

Expand Down Expand Up @@ -49,7 +49,7 @@ In your main configuration file, append the following _Input_ & _Output_ section
Format json
```

Websocket plugin is working with tcp keepalive mode, please refer to [networking](https://docs.fluentbit.io/manual/v/master/administration/networking#configuration-options) section for details. Since websocket is a stateful plugin, it will decide when to send out handshake to server side, for example when plugin just begins to work or after connection with server has been dropped. In general, the interval to init a new websocket handshake would be less than the keepalive interval. With that stratgy, it could detect and resume websocket connetions.
Websocket plugin is working with tcp keepalive mode, please refer to [networking](https://docs.fluentbit.io/manual/v/master/administration/networking#configuration-options) section for details. Since websocket is a stateful plugin, it will decide when to send out handshake to server side, for example when plugin just begins to work or after connection with server has been dropped. In general, the interval to init a new websocket handshake would be less than the keepalive interval. With that stratgy, it could detect and resume websocket connetions.


## Testing
Expand Down

0 comments on commit acbe3ad

Please sign in to comment.