- Remove service.name and service.language (unused) - Remove enabled flags on outputs (presence = enabled) - Simplify correlation config: time_window_s (integer) instead of nested object - Simplify orphan_policy to emit_orphans boolean - Rename apache socket to http.socket - Add socket_permissions option for unix sockets (default: 0660) - Update tests for new configuration format Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
29 lines
628 B
YAML
29 lines
628 B
YAML
# logcorrelator configuration file
|
|
# Format: YAML
|
|
|
|
inputs:
|
|
unix_sockets:
|
|
- name: http
|
|
path: /var/run/logcorrelator/http.socket
|
|
format: json
|
|
socket_permissions: "0660" # owner + group read/write
|
|
- name: network
|
|
path: /var/run/logcorrelator/network.socket
|
|
format: json
|
|
socket_permissions: "0660"
|
|
|
|
outputs:
|
|
file:
|
|
path: /var/log/logcorrelator/correlated.log
|
|
|
|
clickhouse:
|
|
dsn: clickhouse://user:pass@localhost:9000/db
|
|
table: correlated_logs_http_network
|
|
|
|
stdout: false
|
|
|
|
correlation:
|
|
time_window_s: 1
|
|
emit_orphans: true # http toujours émis, network jamais seul
|
|
|