HTTP
The HTTP input plugin allows you to send custom records to an HTTP endpoint.
Configuration Parameters
TLS / SSL
HTTP input plugin supports TTL/SSL, for more details about the properties available and general configuration, please refer to the Transport Security section.
Getting Started
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
How to set tag
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. For example, in the following curl message below the tag set is app.log**. **
because the end end path is /app_log
:
Curl request
Configuration File
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.
Curl request
Configuration File
How to set tag_key
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.
Curl request
Configuration File
How to set multiple custom HTTP header on success
The success_header
parameter allows to set multiple HTTP headers on success. The format is:
Example Curl message
Configuration File
Command Line
Last updated