Skip to content

AWS

sinks:
cloudwatch:
type: aws_cloudwatch_logs
inputs: [artex_by_stream.target, artex_by_stream.agent]
region: "${AWS_REGION}"
group_name: /artex/audit
stream_name: '{{ "artex.stream" }}'
encoding:
codec: json

Use with the Vector base config. Vector signs requests with SigV4 from the usual AWS credential chain (instance role, environment, profile), which AWS recommends for production.

The agent’s logs.logs_collected.files.collect_list takes a file_path, log_group_name and log_stream_name per file. Point one entry at each stream file.

CloudWatch rejects events older than 14 days or more than 2 hours in the future.

Security Lake custom sources take OCSF only (version 1.3 or earlier), as Parquet on S3, partitioned by region, account and day, with one OCSF class per source. ARTEX’s records would map to HTTP Activity (4002), Network Activity (4001) for tunnels, and Detection Finding (2004) for alerts, so three custom sources. No generic output feeds this today: it needs an OCSF mapping in a pipeline (Vector’s aws_s3 sink with Parquet encoding and a remap, or a Cribl pack). ARTEX has no OCSF output.

  • OTLP (#395). CloudWatch Logs has an OTLP endpoint (https://logs.<region>.amazonaws.com/v1/logs) that accepts SigV4 or a bearer API key with logs:CallWithBearerToken, with the log group and stream in x-aws-log-group and x-aws-log-stream headers. AWS recommends SigV4 for production, which a Collector handles better than a static header.
  • Metrics (#396). The CloudWatch agent’s Prometheus support or Amazon Managed Service for Prometheus could scrape /metrics.
  • Vector sink: vector validate 0.62.0 passed with a placeholder region.
  • The CloudWatch agent settings, the OTLP notes and the Security Lake description were written from AWS documentation only. Nothing was sent to AWS.