chore(vector): filter journald noise, add core-git, and remove vector from VPS playbooks
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 8s
ansible-deploy / deploy (core-net, ) (push) Successful in 9s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 8s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m2s
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 8s
ansible-deploy / deploy (core-net, ) (push) Successful in 9s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 8s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m2s
This commit is contained in:
1 parent
a5f3400c0c
commit
71f1a009bf
5 files changed
+30
-25
No files matched your search
@@ -5,6 +5,7 @@ sources:
|
||||
type: docker_logs
|
||||
exclude_containers:
|
||||
- vector
|
||||
- monitoring-vlogs
|
||||
|
||||
journald:
|
||||
type: journald
|
||||
@@ -27,14 +28,26 @@ transforms:
|
||||
msg = replace(msg, r'(?i)((?:password|passwd|secret|api_?key|token)\s*[:=]\s*)[^\s,;"]+', "${1}[REDACTED]")
|
||||
.message = msg
|
||||
|
||||
filter_journald:
|
||||
type: filter
|
||||
inputs:
|
||||
- journald
|
||||
condition: |
|
||||
ident = to_string(.SYSLOG_IDENTIFIER) ?? ""
|
||||
!starts_with(ident, "ansible-") && !includes(["vector", "(systemd)", "CRON"], ident)
|
||||
|
||||
normalize_journald:
|
||||
type: remap
|
||||
inputs:
|
||||
- journald
|
||||
- filter_journald
|
||||
source: |
|
||||
.host = "{{ vector_host_name }}"
|
||||
.source_type = "host"
|
||||
.service = to_string(.SYSLOG_IDENTIFIER) ?? to_string(._SYSTEMD_UNIT) ?? "kernel"
|
||||
svc = to_string(.SYSLOG_IDENTIFIER) ?? to_string(._SYSTEMD_UNIT) ?? "kernel"
|
||||
if svc == "sshd-session" {
|
||||
svc = "sshd"
|
||||
}
|
||||
.service = svc
|
||||
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]")
|
||||
|
||||
Reference in new issue
Block a user