Send your custom logs using Atatus logs ingest API.

  1. Navigate to Atatus Dashboard --> Settings --> Account Settings --> API Keys. You can either generate a new API key or copy an existing one with the type INGEST_LICENSE_KEY. After obtaining the API key, you can send your logs as follows
  curl -X POST \
    -H "Content-Type: application/json" \
    -H "x-api-key: <YOUR_API_KEY>" \
    -d '{"source": "nodejs", "service": "order-service", "hostname": "order-server-27", "message": "060516 18:55:54 [ERROR] Fatal error: Cannot open privilege tables: Table acme.orders does not exist"}' \
    "https://intake-logs.atatus.com/ingest/v1/logs"

Parameters

Some of the following parameters are required to monitor your custom logs.

Name Description
x-api-key (Required) See here to locate the API key

Response Codes

The following response codes will tell the status of your requests.

Code Meaning
200 OK - Uploaded successfully