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
| port | The port for Fluent Bit to listen on | 9880 |
13
-
| tag_key | Specify the key name to overwrite a tag. If set, the tag will be overwritten by a value of the key. ||
14
-
| buffer_max_size | Specify the maximum buffer size in KB to receive a JSON message. | 4M |
15
-
| buffer_chunk_size | This sets the chunk size for incoming JSON messages. These chunks are then stored/managed in the space available by buffer_max_size. | 512K |
16
-
| successful_response_code | It allows to set successful response code. `200`, `201` and `204` are supported. | 201 |
17
-
| success_header | Add an HTTP header key/value pair on success. Multiple headers can be set. Example: `X-Custom custom-answer`||
18
-
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
6
+
## Configuration parameters
7
+
8
+
| Key | Description | Default |
9
+
| --- | ----------- | ------- |
10
+
|`listen`| The address to listen on. |`0.0.0.0`|
11
+
|`port`| The port for Fluent Bit to listen on. |`9880`|
12
+
|`tag_key`| Specify the key name to overwrite a tag. If set, the tag will be overwritten by a value of the key. |_none_|
13
+
|`buffer_max_size`| Specify the maximum buffer size in KB to receive a JSON message. |`4M`|
14
+
|`buffer_chunk_size`| This sets the chunk size for incoming JSON messages. These chunks are then stored and managed in the space available by `buffer_max_size`. |`512K`|
|`success_header`| Add an HTTP header key/value pair on success. Multiple headers can be set. For example, `X-Custom custom-answer`|_none_|
17
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
19
18
20
19
### TLS / SSL
21
20
22
-
HTTP input plugin supports TLS/SSL, for more details about the properties available and general configuration, please refer to the [Transport Security](../../administration/transport-security.md) section.
21
+
HTTP input plugin supports TLS/SSL. For more details about the properties available and general configuration, refer to [Transport Security](../../administration/transport-security.md).
23
22
24
23
### gzipped content
25
24
26
-
The HTTP input plugin will accept and automatically handle gzipped content as of v2.2.1 as long as the header `Content-Encoding: gzip` is set on the received data.
25
+
The HTTP input plugin will accept and automatically handle gzipped content in version 2.2.1 or later if the header `Content-Encoding: gzip` is set on the received data.
27
26
28
-
## Getting Started
27
+
## Get started
29
28
30
-
The http input plugin allows Fluent Bit to open up an HTTP port that you can then route data to in a dynamic way. This plugin supports dynamic tags which allow you to send data with different tags through the same input. An example video and curl message can be seen below
29
+
This plugin supports dynamic tags which let you send data with different tags through the same input. See the following for an example:
31
30
32
31
[Link to video](https://asciinema.org/a/375571)
33
32
34
-
#### How to set tag
33
+
###Set a tag
35
34
36
35
The tag for the HTTP input plugin is set by adding the tag to the end of the request URL. This tag is then used to route the event through the system.
37
-
For example, in the following curl message below the tag set is `app.log**. **` because the end path is `/app_log`:
38
36
39
-
### Curl request
37
+
For example, in the following curl message the tag set is `app.log**. **` because the end path is `/app_log`:
If you do not set the tag `http.0` is automatically used. If you have multiple HTTP inputs then they will follow a pattern of `http.N` where N is an integer representing the input.
77
+
### Configuration file `http.0` example
76
78
77
-
### Curl request
79
+
If you don't set the tag, `http.0` is automatically used. If you have multiple HTTP inputs then they will follow a pattern of `http.N` where `N` is an integer representing the input.
The tag_key configuration option allows to specify the key name that will be used to overwrite a tag. The tag's value will be replaced with the value associated with the specified key. For example, setting tag_key to "custom_tag" and the log event contains a json field with the key "custom_tag" Fluent Bit will use the value of that field as the new tag for routing the event through the system.
119
+
The `tag_key` configuration option lets you specify the key name that will be used to overwrite a tag. The tag's value will be replaced with the value associated with the specified key. For example, setting `tag_key` to `custom_tag` and the log event contains a JSON field with the key `custom_tag`. Fluent Bit will use the value of that field as the new tag for routing the event through the system.
0 commit comments