Create a new CloudTrail connector
POST/v1/log-shipping/cloudtrails
Establishes a new connection to a CloudTrail resource. As a result, logs from your CloudTrail resource will ship to the connected Logz.io account via an AWS S3 bucket.
CloudTrail logs will be parsed using the Logz.io custom CloudTrail parsing pipeline.
Note: This endpoint requires permissions that must be set by our Support team. Please email help@logz.io for assistance. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
AWS S3 access key
AWS secret access key
AWS S3 bucket name
Prefix of the AWS S3 bucket
If true
, the CloudTrail connector is active and logs are being shipped to Logz.io. If false
, the connector is disabled.
Responses
- 200
successful operation
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
Logz.io ID of the CloudTrail connector. Use this ID to perform operations on the connector using Logz.io API endpoints.
{
"id": 0
}