Skip to main content


If you want to ship logs from your code but don't have a library in place, you can send them directly to the listener as a minified JSON file.

The listeners accept bulk uploads over an HTTP/HTTPS connection or TLS/SSL streams over TCP.

The request path and header

For HTTPS shipping (recommended), use this URL configuration:


Otherwise, for HTTP shipping, use this configuration:


Replace the placeholders to match your specifics. (They are indicated by the double angle brackets << >>):

  • Replace <<LOG-SHIPPING-TOKEN>> with the token of the account you want to ship to.

  • Replace <<LISTENER-HOST>> with the host for your region. For example, if your account is hosted on AWS US East, or if hosted on Azure West Europe. The required port depends whether HTTP or HTTPS is used: HTTP = 8070, HTTPS = 8071.

  • Declare your log type for parsing purposes. applies default parsing pipelines to the following list of built-in log types. If you declare another type, contact support for assistance with custom parsing. Can't contain spaces. Otherwise, the default type is http-bulk.

The request body

Your request's body is a list of logs in minified JSON format. Also, each log must be separated by a new line. You can escape newlines in a JSON string with \n.

For example:

{"message": "Hello there", "counter": 1}
{"message": "Hello again", "counter": 2}


  • Max body size is 10 MB (10,485,760 bytes)
  • Each log line must be 500,000 bytes or less
  • If you include a type field in the log, it overrides type in the request header

Code sample

echo $'{"message":"hello there", "counter": 1}\n{"message":"hello again", "counter": 2}' \
| curl -X POST "http://<<LISTENER-HOST>>:8070?token=<<LOG-SHIPPING-TOKEN>>&type=test_http_bulk" -v --data-binary @-

Possible responses

200 OK

All logs were received and validated. Give your logs some time to get from your system to ours, and then check your Log Management account for your logs.

The response body is empty.


The input wasn't valid. The response message will look like this:

"malformedLines": 2, #The number of log lines that aren't valid JSON
"successfulLines": 10, #The number of valid JSON log lines received
"oversizedLines": 3, #The number of log lines that exceeded the line length limit
"emptyLogLines": 4 #The number of empty log lines


The token query string parameter is missing or not valid. Make sure you're using the right account token.

In the response body, you'll see either "Logging token is missing" or "Logging token is not valid" as the reason for the response.


The request body size is larger than 10 MB.