Skip to content

Commit 6716bb1

Browse files
authored
Merge pull request #1673 from fluent/lynettemiles/sc-123163/update-development-ingest-records-manually
2 parents 5aea241 + 3f3a8f8 commit 6716bb1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

development/ingest-records-manually.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Ingest Records Manually
1+
# Ingest records manually
22

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_.
44

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.
66

7-
## Data Format
7+
## Data format
88

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:
1010

11-
```text
11+
```json
1212
[UNIX_TIMESTAMP, MAP]
1313
```
1414

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:
1616

1717
```javascript
1818
[1449505010, {"key1": "some value", "key2": false}]
@@ -75,4 +75,3 @@ int main()
7575
return 0;
7676
}
7777
```
78-

0 commit comments

Comments
 (0)