mirror of
https://github.com/Sea-Haven-Industries/syslog-server.git
synced 2026-10-02 21:33:48 +00:00
fix(infra): start Vector after first-boot dnf race (PLAT-206)
This commit is contained in:
parent
621fef3b19
commit
41a254287f
2 changed files with 10 additions and 3 deletions
|
|
@ -3,7 +3,12 @@ set -euxo pipefail
|
||||||
|
|
||||||
# Vector: listen on UDP/TCP 514 and IPFIX 2055/2056, parse, ship to Firehose.
|
# Vector: listen on UDP/TCP 514 and IPFIX 2055/2056, parse, ship to Firehose.
|
||||||
curl -sSL https://setup.vector.dev | bash
|
curl -sSL https://setup.vector.dev | bash
|
||||||
dnf install -y vector
|
# First boot races AL2023's rpm lock during Vector GPG import.
|
||||||
|
for i in 1 2 3 4 5; do
|
||||||
|
dnf install -y vector && break
|
||||||
|
sleep $((i * 5))
|
||||||
|
done
|
||||||
|
rpm -q vector
|
||||||
|
|
||||||
install -d -m 0755 /etc/vector /var/lib/vector
|
install -d -m 0755 /etc/vector /var/lib/vector
|
||||||
cat > /etc/vector/vector.yaml <<'VECTOREOF'
|
cat > /etc/vector/vector.yaml <<'VECTOREOF'
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ transforms:
|
||||||
"dst": null,
|
"dst": null,
|
||||||
"proto": "ipfix",
|
"proto": "ipfix",
|
||||||
"action": null,
|
"action": null,
|
||||||
"raw": encode_base64(payload) ?? payload
|
"raw": encode_base64(payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_netflow_locust:
|
parse_netflow_locust:
|
||||||
|
|
@ -131,7 +131,7 @@ transforms:
|
||||||
"dst": null,
|
"dst": null,
|
||||||
"proto": "ipfix",
|
"proto": "ipfix",
|
||||||
"action": null,
|
"action": null,
|
||||||
"raw": encode_base64(payload) ?? payload
|
"raw": encode_base64(payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
sinks:
|
sinks:
|
||||||
|
|
@ -142,5 +142,7 @@ sinks:
|
||||||
stream_name: ${firehose_stream}
|
stream_name: ${firehose_stream}
|
||||||
encoding:
|
encoding:
|
||||||
codec: json
|
codec: json
|
||||||
|
healthcheck:
|
||||||
|
enabled: false
|
||||||
request:
|
request:
|
||||||
timeout_secs: 30
|
timeout_secs: 30
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue