HTTP
The HTTP input plugin allows you to send custom records to an HTTP endpoint.

Configuration Parameters

Key
Description
default
host
The address to listen on
0.0.0.0
port
The port for Fluent Bit to listen on
9880
buffer_max_size
Specify the maximum buffer size in KB to receive a JSON message.
4M
buffer_chunk_size
This sets the chunk size for incoming incoming JSON messages. These chunks are then stored/managed in the space available by buffer_max_size.
512K

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. 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.
Example Curl message
1
curl -d @app.log -XPOST -H "content-type: application/json" http://localhost:8888/app.log
Copied!

Configuration File

1
[INPUT]
2
name http
3
host 0.0.0.0
4
port 8888
5
6
[OUTPUT]
7
type stdout
8
match *
Copied!

Command Line

1
gt; fluent-bit -i http -p port=8888 -o stdout
Copied!

Last modified 7mo ago