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 **docker events** input plugin uses the docker API to capture server events. A complete list of possible events returned by this plugin can be found [here](https://docs.docker.com/engine/reference/commandline/events/)
3
+
The _Docker events_ input plugin uses the Docker API to capture server events. A complete list of possible events returned by this plugin can be found [in the Docker documentation](https://docs.docker.com/engine/reference/commandline/events/).
4
4
5
-
## Configuration Parameters
5
+
## Configuration parameters
6
6
7
7
This plugin supports the following configuration parameters:
8
8
9
9
| Key | Description | Default |
10
10
| :--- | :--- | :--- |
11
-
|Unix\_Path| The docker socket unix path | /var/run/docker.sock |
12
-
|Buffer\_Size| The size of the buffer used to read docker events \(in bytes\)| 8192 |
13
-
| Parser | Specify the name of a parser to interpret the entry as a structured message. |None|
14
-
| Key | When a message is unstructured \(no parser applied\), it's appended as a string under the key name _message_. | message |
15
-
| Reconnect.Retry_limits| The maximum number of retries allowed. The plugin tries to reconnect with docker socket when EOF is detected. |5|
16
-
| Reconnect.Retry_interval| The retrying interval. Unit is second. |1|
17
-
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
11
+
|`Unix_Path`| The docker socket Unix path.|`/var/run/docker.sock`|
12
+
|`Buffer_Size`| The size of the buffer used to read docker events in bytes.|`8192`|
13
+
|`Parser`| Specify the name of a parser to interpret the entry as a structured message. |_none_|
14
+
|`Key`| When a message is unstructured (no parser applied), it's appended as a string under the key name `message`. |`message`|
15
+
|`Reconnect.Retry_limits`| The maximum number of retries allowed. The plugin tries to reconnect with docker socket when `EOF` is detected. |`5`|
16
+
|`Reconnect.Retry_interval`| The retry interval in seconds. |`1`|
17
+
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
18
18
19
-
### Command Line
19
+
### Command line
20
+
21
+
You can run this plugin from the command line:
20
22
21
23
```bash
22
-
$ fluent-bit -i docker_events -o stdout
24
+
fluent-bit -i docker_events -o stdout
23
25
```
24
26
25
-
### Configuration File
27
+
### Configuration file
26
28
27
-
In your main configuration file append the following **Input** & **Output** sections:
29
+
In your main configuration file append the following `Input` and `Output` sections:
28
30
29
31
{% tabs %}
30
32
{% tab title="fluent-bit.conf" %}
33
+
31
34
```yaml
32
35
[INPUT]
33
36
Name docker_events
@@ -36,9 +39,11 @@ In your main configuration file append the following **Input** & **Output** sect
0 commit comments