POST Events
Data ingestion in JSON format. The data should be submitted in JSON format and the maximum size limit for a single submission is 4MB. Each submission can contain a single text
field with a limit of 16KB. To improve efficiency, it is recommended to submit multiple adjacent events in a batch instead of separate POST
requests for each event.
The request body should be an array represented in JSON format. Each member of the array should contain field names and their corresponding values of the log message. If the timestamp field is empty, it will be automatically filled with the current time. However, if it contains an old time, it will be updated. If a single error is detected in any of the logs, the entire request will be rejected.
[
{
"timestamp": 1396622879241,
"text": "A new process has been created.",
"field_1": "content",
"field_2": "content"
}
]
{
"ingested": 1,
"message": "events ingested",
"status": "ok"
}
ingested
status
message
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v2/events