cURL
curl --request POST \ --url https://api.eu.bronto.io/forward-configs \ --header 'Content-Type: application/json' \ --header 'X-BRONTO-API-KEY: <api-key>' \ --data '{ "name": "Archive data to S3", "description": "Sending data to S3 for long term store", "filter": "level='\''ERROR'\'' or level='\''WARN'\''", "compression": "ZSTD", "all_logs": true, "log_ids": [ "<string>" ], "max_payload_size_bytes": 10000000, "max_payload_size_events": 1000, "max_buffer_time_ms": 300000, "destination": { "destination_type": "S3", "bucket": "my-archive-bucket", "prefix": "bronto/archives/", "storage_class": "STANDARD" } }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "Archive data to S3", "description": "Sending data to S3 for long term store", "filter": "level='ERROR' or level='WARN'", "compression": "ZSTD", "all_logs": true, "log_ids": [ "<string>" ], "max_payload_size_bytes": 10000000, "max_payload_size_events": 1000, "max_buffer_time_ms": 300000, "destination": { "destination_type": "S3", "bucket": "my-archive-bucket", "prefix": "bronto/archives/", "storage_class": "STANDARD" }, "created_at": 1710948395538 }
Create a forward config, to forward log events outside the Bronto system (e.g. archive logs in an S3 bucket)
Forward config is created successfully
The response is of type object.
object