refactor the KafkatorioPacket tag that the mod logs, and the syslog-server parses

This commit is contained in:
Adam 2022-10-18 21:27:16 +02:00
parent ecf680d9ce
commit dda48bac78
4 changed files with 84 additions and 25 deletions

View file

@ -17,7 +17,7 @@ KEY="${INSTANCE_ID:-none}"
while :; do
docker logs --tail 0 -f "$FACTORIO_SERVER_CONTAINER_NAME" |
sed -n -e 's/^KafkatorioPacket encoded::: //p' |
sed -n -e 's/^KafkatorioPacket::://p' |
kcat -P \
-b "$KAFKA_HOST" \
-t kafkatorio.src.server-log \