feat(vector): switch to native package with journald, docker_logs, and secret masking
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 2s
ansible-deploy / deploy (core-mon, ) (push) Failing after 33s
ansible-deploy / deploy (core-net, ) (push) Failing after 28s
ansible-deploy / deploy (core-secrets, ) (push) Failing after 38s
ansible-deploy / deploy (ger-nod-02, ) (push) Failing after 31s
ansible-deploy / deploy (rus-central, ) (push) Failing after 49s
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 2s
ansible-deploy / deploy (core-mon, ) (push) Failing after 33s
ansible-deploy / deploy (core-net, ) (push) Failing after 28s
ansible-deploy / deploy (core-secrets, ) (push) Failing after 38s
ansible-deploy / deploy (ger-nod-02, ) (push) Failing after 31s
ansible-deploy / deploy (rus-central, ) (push) Failing after 49s
This commit is contained in:
1 parent
1252413a1b
commit
8ab5b65073
4 files changed
+72
-68
No files matched your search
@@ -1,4 +1,4 @@
|
||||
data_dir: /var/lib/vector
|
||||
data_dir: {{ vector_data_dir }}
|
||||
|
||||
sources:
|
||||
docker:
|
||||
@@ -6,13 +6,9 @@ sources:
|
||||
exclude_containers:
|
||||
- vector
|
||||
|
||||
host_logs:
|
||||
type: file
|
||||
include:
|
||||
- /var/log/syslog
|
||||
- /var/log/messages
|
||||
- /var/log/auth.log
|
||||
ignore_older_secs: 86400
|
||||
journald:
|
||||
type: journald
|
||||
since_now: true
|
||||
|
||||
transforms:
|
||||
normalize_docker:
|
||||
@@ -26,22 +22,30 @@ transforms:
|
||||
if exists(.label."com.docker.compose.service") {
|
||||
.service = string!(.label."com.docker.compose.service")
|
||||
}
|
||||
msg = to_string(.message) ?? ""
|
||||
msg = replace(msg, r'(?i)(bearer\s+)[a-z0-9._-]+', "${1}[REDACTED]")
|
||||
msg = replace(msg, r'(?i)((?:password|passwd|secret|api_?key|token)\s*[:=]\s*)[^\s,;"]+', "${1}[REDACTED]")
|
||||
.message = msg
|
||||
|
||||
normalize_host:
|
||||
normalize_journald:
|
||||
type: remap
|
||||
inputs:
|
||||
- host_logs
|
||||
- journald
|
||||
source: |
|
||||
.host = "{{ vector_host_name }}"
|
||||
.source_type = "host"
|
||||
.service = replace(string!(.file), "/var/log/", "")
|
||||
.service = to_string(.SYSLOG_IDENTIFIER) ?? to_string(._SYSTEMD_UNIT) ?? "kernel"
|
||||
msg = to_string(.message) ?? ""
|
||||
msg = replace(msg, r'(?i)(bearer\s+)[a-z0-9._-]+', "${1}[REDACTED]")
|
||||
msg = replace(msg, r'(?i)((?:password|passwd|secret|api_?key|token)\s*[:=]\s*)[^\s,;"]+', "${1}[REDACTED]")
|
||||
.message = msg
|
||||
|
||||
sinks:
|
||||
victorialogs:
|
||||
type: http
|
||||
inputs:
|
||||
- normalize_docker
|
||||
- normalize_host
|
||||
- normalize_journald
|
||||
uri: "{{ vector_vlogs_url }}"
|
||||
encoding:
|
||||
codec: json
|
||||
@@ -55,4 +59,3 @@ sinks:
|
||||
VL-Time-Field: "timestamp"
|
||||
healthcheck:
|
||||
enabled: false
|
||||
|
||||
Reference in new issue
Block a user