POST Events

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.

Request
URI
POST
https://{api_host}/api/v2/events
COPY
Request Body
Array of object of type(s) application/json
Optional
[
    {
        "timestamp": 1396622879241,
        "text": "A new process has been created.",
        "field_1": "content",
        "field_2": "content"
    }
]
Authentication
This operation uses the following authentication methods.
Responses
200
{
    "ingested": 1,
    "message": "events ingested",
    "status": "ok"
}
integer
ingested
Required

ingested

string
status
Required

status

string
message
Optional

message


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v2/events