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
Copy file name to clipboardExpand all lines: development/ingest-records-manually.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
-
# Ingest Records Manually
1
+
# Ingest records manually
2
2
3
-
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_.
3
+
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_.
4
4
5
-
For this purpose a specific input plugin called **lib** exists and can be using in conjunction with the **flb\_lib\_push\(\)** API function.
5
+
For this purpose, a specific input plugin called **lib** exists and can be used in conjunction with the `flb_lib`_push()` API function.
6
6
7
-
## Data Format
7
+
## Data format
8
8
9
-
The **lib** input plugin expect the data comes in a fixed JSON format as follows:
9
+
The `lib` input plugin expects the data in the following fixed JSON format:
10
10
11
-
```text
11
+
```json
12
12
[UNIX_TIMESTAMP, MAP]
13
13
```
14
14
15
-
Every record must be 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\) and the second entry is a JSON map with a list of key/values. A valid entry can be the following:
15
+
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:
0 commit comments