designs/solutions/test/specs/logging.yaml

48 lines
730 B
YAML
Raw Permalink Normal View History

2026-03-07 23:23:32 +00:00
spec_type: logging
name: Logging Configuration
version: "1.0"
destinations:
- name: stdout
type: console
format: json
level: info
- name: elasticsearch
type: elasticsearch
hosts:
- https://logs.example.com:9200
index_pattern: "app-logs-%{+YYYY.MM.dd}"
level: debug
- name: cloudwatch
type: aws_cloudwatch
log_group: /app/production
region: us-east-1
level: warn
format:
type: json
fields:
- timestamp
- level
- message
- service
- trace_id
- span_id
- user_id
- request_id
retention:
hot: 7 days
warm: 30 days
cold: 90 days
redaction:
enabled: true
fields:
- password
- token
- credit_card
- ssn