Skip to main content
POST
/
logs
/
ingest
Send Log Lines
curl --request POST \
  --url https://logs.mezmo.com/logs/ingest \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "lines": [
    {
      "line": "<string>",
      "timestamp": "<string>",
      "app": "<string>",
      "level": "<string>",
      "meta": "<string>"
    }
  ]
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apikey
string
header
required

(Deprecated) This key is used for ingestion. You can obtain it following these instructions and placing the key in the header of your call. NOTE Usage of the apikey auth mechanism has been deprecated in favor of IAM Access Tokens. Service keys can no longer be created, but can still be used for v1 and v2 apis while the transition takes place

Query Parameters

hostname
string
required

Host name of the source.

mac
string

The network mac address of the host computer.

Pattern: ^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$
Example:

"01:02:03:04:ab:cd"

ip
string

The local IP address of the host computer. The local IP address of the host computer (ipv4 or ipv6)

Example:

"10.0.1.111"

now
string

The source UNIX timestamp in milliseconds at the time of the request. Used to calculate time drift.

tags
string

Tags that are used to dynamically group hosts.

Body

application/json

You can send multiple log lines in a request.

lines
object[]

Response

OK

{key}
object