aws_s3ο
Collect logs from AWS S3
Type: aws_s3
{% code title=βsample.yamlβ %}
sources:
aws_s3_example:
type: aws_s3
sqs.queue_url: https://sqs.us-east-1.amazonaws.com
region: bytes
auth.strategy: access_key_id
auth.access_key_id: ''
auth.secret_access_key: ''
auth.credentials_file: ''
decoding.codec: bytes
route_label: ''
tls:
tls.enabled: false
tls.alpn_protocols: ''
tls.verify_certificate: true
tls.verify_hostname: true
tls.ca_file: ''
tls.crt_file: ''
tls.key_file: ''
tls.key_pass: ''
# optional:
# <key>: <value>
{% endcode %}
Fields Referenceο
Below are tables for Base, TLS, and Optional sections. Columns: Key, Label, Type, Default, Required, Depends on, Enum / Notes.
Baseο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
sqs.queue_url |
SQS Queue URL |
string |
https://sqs.us-east-1.amazonaws.com |
β |
The URL of the SQS queue to poll for bucket notifications. |
β |
region |
Region |
enum |
bytes |
β |
The AWS region of the target service. Enum: [βaf-south-1β, βap-east-1β, βap-northeast-1β, βap-northeast-2β, βap-northeast-3β, βap-south-1β, βap-south-2β, βap-southeast-1β, βap-southeast-2β, βap-southeast-3β, βap-southeast-4β, βap-southeast-5β, βap-southeast-7β, βca-central-1β, βca-west-1β, βeu-central-1β, βeu-central-2β, βeu-north-1β, βeu-south-1β, βeu-south-2β, βeu-west-1β, βeu-west-2β, βeu-west-3β, βil-central-1β, βme-central-1β, βme-south-1β, βmx-central-1β, βsa-east-1β, βus-east-1β, βus-east-2β, βus-west-1β, βus-west-2β] |
β |
auth.strategy |
Auth Strategy |
enum |
access_key_id |
β |
The authentication strategy to use. Enum: [βaccess_key_idβ, βcredentials_fileβ, βimdsβ] |
β |
auth.access_key_id |
Auth Access Key ID |
string |
ββ |
β |
The AWS access key ID. |
auth.strategy = access_key_id |
auth.secret_access_key |
Auth Secret Access Key |
string |
ββ |
β |
The AWS secret access key. |
auth.strategy = access_key_id |
auth.credentials_file |
Auth Credentials File |
string |
ββ |
β |
Path to the credentials file. |
auth.strategy = credentials_file |
decoding.codec |
Decoding Codec |
enum |
bytes |
β |
The codec to use for decoding events. Enum: [βavroβ, βbytesβ, βgelfβ, βinfluxdbβ, βjsonβ, βnativeβ, βnative_jsonβ, βprotobufβ, βsyslogβ, βvrlβ] |
β |
route_label |
Event Routing Label |
string |
ββ |
β |
The label to use in routing these events to a destination. Defaults to source name-type. |
β |
TLSο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
tls.enabled |
TLS Enabled |
bool |
false |
β |
Whether or not to require TLS for incoming or outgoing connections. |
β |
tls.alpn_protocols |
ALPN protocols |
string |
ββ |
β |
List of supported ALPN protocols. |
β |
tls.verify_certificate |
Verify Certificate |
bool |
true |
β |
Enable certificate verification. |
β |
tls.verify_hostname |
Verify Hostname |
bool |
true |
β |
Enable hostname verification. |
β |
tls.ca_file |
Certificate Authority File |
file_ca_file |
ββ |
β |
Absolute path to an additional CA certificate file. |
β |
tls.crt_file |
Certificate File |
file_crt_file |
ββ |
β |
Absolute path to a certificate file used to identify this server. |
β |
tls.key_file |
Private Key |
file_key_file |
ββ |
β |
Absolute path to a private key file used to identify this server. |
β |
tls.key_pass |
Private Key Passphrase |
string |
ββ |
β |
Passphrase used to unlock the encrypted key file. |
β |
Optionalο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
description |
Description |
string |
ββ |
β |
The description of the entry. |
β |
auth.assume_role |
Auth Assume Role |
string |
ββ |
β |
The ARN of an IAM role to assume. |
β |
auth.external_id |
Auth External ID |
string |
ββ |
β |
Unique external ID used with assume role. |
β |
auth.imds.connect_timeout_seconds |
Auth IMDS Connect Timeout Seconds |
int |
1 |
β |
Connect timeout for IMDS. |
auth.strategy = imds |
auth.imds.max_attempts |
Auth IMDS Max Attempts |
int |
4 |
β |
Number of IMDS retries. |
auth.strategy = imds |
auth.load_timeout_secs |
Auth Load Timeout Secs |
int |
30 |
β |
Timeout for loading any credentials (secs). |
auth.strategy = imds |
auth.region |
Auth Region |
string |
ββ |
β |
The AWS region. |
β |
auth.session_name |
Auth Session Name |
string |
ββ |
β |
Role session name for assumed role. |
β |
compression |
Compression |
enum |
auto |
β |
Compression algorithm. Enum: [βautoβ, βgzipβ, βnoneβ, βzstdβ] |
β |
decoding.avro.schema |
Decoding Avro Schema |
string |
ββ |
β |
The Avro schema definition. |
decoding.codec = avro |
decoding.avro.strip_schema_id_prefix |
Strip Avro Schema ID Prefix |
bool |
true |
β |
Strip schema ID prefix for Avro datum. |
decoding.codec = avro |
decoding.gelf.lossy |
Decoding Gelf Lossy |
bool |
true |
β |
Replace invalid UTF-8 instead of failing. |
decoding.codec = gelf |
decoding.influxdb.lossy |
Decoding Influxdb Lossy |
bool |
true |
β |
Replace invalid UTF-8 instead of failing. |
decoding.codec = influxdb |
decoding.json.lossy |
Decoding Json Lossy |
bool |
true |
β |
Replace invalid UTF-8 instead of failing. |
decoding.codec = json |
decoding.native_json.lossy |
Decoding Native Json Lossy |
bool |
true |
β |
Replace invalid UTF-8 instead of failing. |
decoding.codec = native_json |
decoding.protobuf.desc_file |
Decoding Protobuf Desc File |
string |
ββ |
β |
Path to desc file. |
decoding.codec = protobuf |
decoding.protobuf.message_type |
Decoding Protobuf Message Type |
string |
ββ |
β |
Message type for desc file. |
decoding.codec = protobuf |
decoding.syslog.lossy |
Decoding Syslog Lossy |
bool |
true |
β |
Replace invalid UTF-8 instead of failing. |
decoding.codec = syslog |
decoding.vrl.source |
Decoding Vrl Source |
string |
ββ |
β |
VRL program to execute for each event. |
decoding.codec = vrl |
decoding.vrl.timezone |
Decoding Vrl Timezone |
string |
local |
β |
Timezone name for timestamp conversions. |
decoding.codec = vrl |
endpoint |
Endpoint |
string |
ββ |
β |
Custom endpoint for AWS-compatible services. |
β |
force_path_style |
Force Path Style |
bool |
true |
β |
Use path-style addressing instead of virtual-hosted. |
β |
multiline.condition_pattern |
Multiline Condition Pattern |
string |
ββ |
β |
Regex that determines whether more lines should be read. |
β |
multiline.mode |
Multiline Mode |
enum |
continue_past |
β |
Aggregation mode; must be used with condition_pattern. Enum: [βcontinue_pastβ, βcontinue_throughβ, βhalt_beforeβ, βhalt_withβ] |
β |
multiline.start_pattern |
Multiline Start Pattern |
string |
ββ |
β |
Regex that matches the start of a new message. |
β |
multiline.timeout_ms |
Multiline Timeout MS |
int |
600000 |
β |
Max time to wait for next additional line (ms). |
β |
proxy.enabled |
Proxy Enabled |
bool |
false |
β |
Enable proxying support. |
β |
proxy.http |
Proxy HTTP |
regex |
β |
β |
Proxy endpoint for HTTP traffic. |
β |
proxy.https |
Proxy HTTPS |
regex |
β |
β |
Proxy endpoint for HTTPS traffic. |
β |
proxy.no_proxy |
Proxy No Proxy |
string |
ββ |
β |
Comma-separated list of hosts to avoid proxying. |
β |
sqs.client_concurrency |
SQS Client Concurrency |
int |
β |
β |
Number of concurrent polling tasks. |
β |
sqs.connect_timeout_seconds |
SQS Connect Timeout |
int |
β |
β |
Connection timeout for AWS requests. |
β |
sqs.delete_failed_message |
SQS Delete Failed Message |
bool |
true |
β |
Delete non-retryable messages after rejection by sink. |
β |
sqs.delete_message |
SQS Delete Message |
bool |
true |
β |
Delete the message once processed. |
β |
sqs.max_number_of_messages |
SQS Max Number of Messages |
int |
10 |
β |
Maximum number of messages to poll in a batch. |
β |
sqs.operation_timeout_seconds |
SQS Operation Timeout |
int |
β |
β |
Operation timeout for AWS requests. |
β |
sqs.poll_secs |
SQS Poll Secs |
int |
15 |
β |
Seconds to wait while polling for new messages. |
β |
sqs.read_timeout_seconds |
SQS Read Timeout |
int |
β |
β |
Read timeout for AWS requests. |
β |
sqs.tls_options.enabled |
SQS TLS Enabled |
bool |
false |
β |
Require TLS for outgoing connections to SQS. |
β |
sqs.tls_options.alpn_protocols |
SQS TLS ALPN protocols |
string |
ββ |
β |
List of supported ALPN protocols for SQS client. |
β |
sqs.tls_options.server_name |
SQS TLS Server Name |
string |
ββ |
β |
Server name for SNI. |
β |
sqs.tls_options.verify_certificate |
SQS TLS Verify Certificate |
bool |
true |
β |
Enable certificate verification for SQS. |
β |
sqs.tls_options.verify_hostname |
SQS TLS Verify Hostname |
bool |
true |
β |
Enable hostname verification for SQS. |
β |
sqs.tls_options.ca_file |
SQS TLS Certificate Authority File |
file_ca_file |
ββ |
β |
Additional CA certificate file for SQS. |
β |
sqs.tls_options.crt_file |
SQS TLS Certificate File |
file_crt_file |
ββ |
β |
Client certificate file for SQS. |
β |
sqs.tls_options.key_file |
SQS TLS Private Key |
file_key_file |
ββ |
β |
Client private key for SQS. |
β |
sqs.tls_options.key_pass |
SQS TLS Private Key Passphrase |
string |
ββ |
β |
Passphrase to unlock the SQS key file. |
β |