Ingest logs with headers
Log Ingestion API via Custom Headers
This approach allows you to send logs to Parseable using custom headers to specify the target stream.
Required headers:
- X-PBL-Stream: The name of the stream to ingest logs into
The API accepts logs in JSON format. You can send single log entries or arrays of log entries.
Example:
Or as an array:
Authorization
Authorization
RequiredBasic <token>In: header
Request Body
application/json
OptionalHeader Parameters
X-PBL-Stream
RequiredstringResponse Body
Successful response
curl -X POST "https://demo.parseable.com/api/v1/ingest" \
-H "X-PBL-Stream: string" \
-H "Authorization: Basic <token>" \
-H "Content-Type: application/json" \
-d '{}'
Empty