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
The **nats** output plugin, allows to flush your records into a [NATS Server](https://docs.nats.io/nats-concepts/intro) end point. The following instructions assumes that you have a fully operational NATS Server in place.
3
+
The _NATS_ output plugin lets you flush your records into a [NATS Server](https://docs.nats.io/) server endpoint.
| host|IP address or hostname of the NATS Server |127.0.0.1 |
10
-
| port|TCP port of the target NATS Server |4222|
11
-
| workers| The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`0`|
7
+
|Key|Description | Default|
8
+
|---|-----------|-------|
9
+
|`host`| The IP address or hostname of the NATS server. |`127.0.0.1`|
10
+
|`port`| The TCP port of the target NATS server. |`4222`|
11
+
|`workers`| The number of [workers](../administration/multithreading.md#outputs) to perform flush operations for this output. |`0`|
12
12
13
-
In order to override the default configuration values, the plugin uses the optional Fluent Bit network address format, e.g:
13
+
{% hint style="info" %}
14
14
15
-
```text
16
-
nats://host:port
17
-
```
15
+
To override the default configuration values, this plugin uses the optional Fluent Bit network address format (for example, `nats://host:port`).
16
+
17
+
{% endhint %}
18
18
19
-
## Running
19
+
## Get started
20
20
21
-
[Fluent Bit](http://fluentbit.io) only requires to know that it needs to use the **nats** output plugin, if no extra information is given, it will use the default values specified in the above table.
21
+
You can get started with the NATS output plugin through the command line. If you use the following command without specifying parameter values, Fluent Bit uses the default values defined in the previous section.
As described above, the target service and storage point can be changed, e.g:
42
-
43
41
## Data format
44
42
45
-
For every set of records flushed to a NATS Server, Fluent Bit uses the following format:
43
+
For every set of records flushed to a NATS server, Fluent Bit uses the following format:
46
44
47
45
```text
48
46
[
@@ -52,12 +50,12 @@ For every set of records flushed to a NATS Server, Fluent Bit uses the following
52
50
]
53
51
```
54
52
55
-
Each record is an individual entity represented in a JSON array that contains a UNIX\_TIMESTAMP and a JSON map with a set of key/values. A summarized output of the CPU input plugin will look as this:
53
+
Each record is an individual entity represented in a JSON array that contains a Unix timestamp and a JSON map with a set of key/value pairs. A summarized output of the CPU input plugin will resemble the following:
0 commit comments