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"
1 - 50
elementsA secret to sign log drain notification headers so a consumer can verify their authenticity
100
"a1Xsfd325fXcs"
The delivery log format
json
, ndjson
, syslog
"json"
1
Headers to be sent together with the request
1
Response
The log drain was successfully created
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 oauth2 client application id that created this log drain
"oac_xRhY4LAB7yLhUADD69EvV7ct"
The client configuration this log drain was created with
"icfg_3bwCLgxL8qt5kjRLcv2Dit7F"
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.
["build", "edge"]
Whether the log drain was created by an integration or by a user
integration
, self-served
"integration"
The headers to send with the request
"{\"Authorization\": \"Bearer 123\"}"
The environment of log drain
["production"]
The branch regexp of log drain
"feature/*"
The sampling rate of log drain
0.5