Creates a new Integration Log Drain
Creates an Integration log drain. This endpoint must be called with an OAuth2 client (integration), since log drains are tied to integrations. If it is called with a different token type it will produce a 400 error.
Authorizations
Default authentication mechanism
Query Parameters
The Team identifier to perform the request on behalf of.
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
The Team slug to perform the request on behalf of.
"my-team-url-slug"
Body
The name of the log drain
100
"My first log drain"
The url where you will receive logs. The protocol must be https://
or http://
when type is json
and ndjson
, and syslog+tls:
or syslog:
when the type is syslog
.
"https://example.com/log-drain"
A secret to sign log drain notification headers so a consumer can verify their authenticity
100
"a1Xsfd325fXcs"
The delivery log format
json
, ndjson
, syslog
"json"
static
, lambda
, build
, edge
, external
, firewall
Headers to be sent together with the request
preview
, production
Response
A timestamp that tells you when the log drain was created
1558531915505
The unique identifier of the log drain. Always prefixed with ld_
"ld_nBuA7zCID8g4QZ8g"
The name of the log drain
"My first log drain"
The identifier of the team or user whose events will trigger the log drain
"kr1PsOIzqEL5Xg6M4VZcZosf"
The URL to call when logs are generated
"https://example.com/log-drain"
The environment of log drain
The environment of log drain
production
, preview
["production"]
The oauth2 client application id that created this log drain
"oac_xRhY4LAB7yLhUADD69EvV7ct"
The client configuration this log drain was created with
"icfg_cuwj0AdCdH3BwWT4LPijCC7t"
The delivery log format
json
, ndjson
, syslog
, protobuf
"json"
"AbCgVkqoxXeXCDWehVir51LHGrrcWL4mkYm14W6UBPWQeb"
The identifier of the projects this log drain is associated with
"AbCgVkqoxXeXCDWehVir51LHGrrcWL4mkYm14W6UBPWQeb"
The sources from which logs are currently being delivered to this log drain.
The sources from which logs are currently being delivered to this log drain.
build
, edge
, lambda
, static
, external
, firewall
["build", "edge"]
Whether the log drain was created by an integration or by a user
self-served
, integration
"integration"
The headers to send with the request
"{\"Authorization\": \"Bearer 123\"}"
The branch regexp of log drain
"feature/*"
The sampling rate of log drain
0.5