Files
logs/etc/logs_dev.yaml

41 lines
921 B
YAML
Raw Normal View History

2026-06-24 15:13:59 +08:00
Service: logs
2026-09-09 16:45:01 +08:00
Port: 12440
BindIP: 0.0.0.0
2026-03-30 15:26:16 +08:00
Databases:
Driver: postgres
Source:
2026-09-09 16:45:01 +08:00
- "${OPS_LOGS_DB_DSN}"
2026-06-24 15:13:59 +08:00
# - host=8.137.107.29 user=system password=12345678 dbname=ops port=54321 sslmode=disable TimeZone=Asia/Shanghai
2026-03-30 15:26:16 +08:00
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
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: https://ops-api.apinb.com
internal_key: ${LOGS_ALERT_SECRET}
default_policy_id: 0
ResourceEvent:
hmac_secret: ${DC_CONTROL_LOGS_EVENT_SECRET}
max_skew_secs: 300
2026-09-09 16:45:01 +08:00
OTLP:
internal_key: ${LOGS_OTLP_INTERNAL_KEY}
SystemSettings:
base_url: http://localhost:12436
refresh_seconds: 30
timeout_seconds: 5