Files
logs/etc/logs_prod.yaml
2026-09-09 16:45:01 +08:00

40 lines
757 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Service: logs
Port: 12440
BindIP: 127.0.0.1
Databases:
Driver: postgres
Source:
- "${OPS_LOGS_DB_DSN}"
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
Cache: ${OPS_CACHE_DSN}
MicroService:
Enable: false
Anonymous:
- ops.ping.hello
Ingest:
syslog_listen_addr: "0.0.0.0:5514"
trap_listen_addr: "0.0.0.0:9162"
rule_refresh_secs: 30
AlertForward:
enabled: true
base_url: ${ALERT_BASE_URL}
internal_key: ${LOGS_ALERT_SECRET}
default_policy_id: 0
ResourceEvent:
hmac_secret: ${DC_CONTROL_LOGS_EVENT_SECRET}
max_skew_secs: 300
OTLP:
internal_key: ${LOGS_OTLP_INTERNAL_KEY}
SystemSettings:
base_url: ${MGT_BASE_URL}
refresh_seconds: 30
timeout_seconds: 5