You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Host | Target host where Fluent-Bit or Fluentd are listening for Forward messages. | 127.0.0.1 |
10
-
| Port | TCP Port of the target service. | 5170 |
11
-
| Format | Specify the data format to be printed. Supported formats are _msgpack__json_, _json\_lines_ and _json\_stream_. | msgpack |
12
-
| 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 |
13
-
| 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 |
14
-
| workers | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`2`|
7
+
This plugin supports the following parameters:
15
8
16
-
## TLS Configuration Parameters
9
+
| Key | Description | Default |
10
+
|:--- |:----------- |:------- |
11
+
|`Host`| Target host where Fluent-Bit or Fluentd are listening for Forward messages. |`127.0.0.1`|
12
+
|`Port`| TCP Port of the target service. |`5170`|
13
+
|`Format`| Specify the data format to be printed. Supported formats: `msgpack`, `json`, `json_lines`, `json_stream`. |`msgpack`|
14
+
|`json_date_key`| Specify the name of the time key in the output record. To disable the time key, set the value to `false`. |`date`|
15
+
|`json_date_format`| Specify the format of the date. Supported formats: `double`, `epoch`, `iso8601`, `java_sql_timestamp`|`double`|
16
+
|`workers`| The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`2`|
17
+
18
+
## TLS configuration parameters
17
19
18
20
The following parameters are available to configure a secure channel connection through TLS:
|`tls.ca_file`| Absolute path to CA certificate file. |_none_|
28
+
|`tls.crt_file`| Absolute path to Certificate file. |_none_|
29
+
|`tls.key_file`| Absolute path to private Key file. |_none_|
30
+
|`tls.key_passwd`| Optional password for tls.key_file file. |_none_|
29
31
30
-
### Command Line
32
+
### Command line
31
33
32
34
#### JSON format
33
35
36
+
This example specifies gathering [CPU](https://docs.fluentbit.io/manual/pipeline/inputs/cpu-metrics) usage metrics and send them in JSON lines mode to a remote endpoint using netcat service.
37
+
34
38
```shell
35
39
fluent-bit -i cpu -o tcp://127.0.0.1:5170 -p format=json_lines -v
36
40
```
37
41
38
-
We have specified to gather [CPU](https://github.com/fluent/fluent-bit-docs/tree/16f30161dc4c79d407cd9c586a0c6839d0969d97/pipeline/input/cpu.md) usage metrics and send them in JSON lines mode to a remote end-point using netcat service.
39
42
40
-
Run the following in a separate terminal, `netcat` will start listening for messages on TCP port 5170.
41
-
Once it connects to Fluent Bit ou should see the output as above in JSON format:
43
+
Run the following in a separate terminal, `netcat` will start listening for messages on TCP port 5170. After it connects to Fluent Bit you should see the output in JSON format:
Repeat the JSON approach but using the `msgpack` output format.
54
60
55
61
```shell
56
62
fluent-bit -i cpu -o tcp://127.0.0.1:5170 -p format=msgpack -v
57
63
```
58
64
59
-
We could send this to stdout but as it is a serialized format you would end up with strange output.
60
-
This should really be handled by a msgpack receiver to unpack as per the details in the developer documentation [here](../../development/msgpack-format.md).
61
-
As an example we use the [Python msgpack library](https://msgpack.org/#languages)to deal with it:
65
+
You could send this to stdout but as it's a serialized format you would end up with strange output.
66
+
67
+
This should be handled by a [`msgpack`](../../development/msgpack-format.md) receiver to unpack. The following example uses the [Python `msgpack` library](https://msgpack.org/#languages)handle it:
0 commit comments