Ingest Records Manually
There are some cases where Fluent Bit library is used to send records from the caller application to some destination. This process is called manual data ingestion.
For this purpose, a specific input plugin called lib exists and can be used in conjunction with the flb_lib
_push()` API function.
Data format
The lib
input plugin expects the data in the following fixed JSON format:
Every record must be in a JSON array that contains at least two entries. The first one is the UNIX_TIMESTAMP
which is a number representing time associated to the event generation (Epoch time). the second entry is a JSON map with a list of keys and values. A valid entry can be the following:
Usage
The following C code snippet shows how to insert a few JSON records into a running Fluent Bit engine:
Last updated
Was this helpful?