aws/aws-for-fluent-bit

Tail Debug Logging Crash issue in 2.31.7 - 2.31.9

Closed this issue · 0 comments

This only affects you if ALL of following are true:

  1. You are using 2.31.7 to 2.31.9
  2. You are using the tail input: https://docs.fluentbit.io/manual/pipeline/inputs/tail
  3. You have enabled debug logging: https://github.com/aws/aws-for-fluent-bit/blob/mainline/troubleshooting/debugging.md#enable-debug-logging

Versions Impacted

2.31.7, 2.31.8 and 2.31.9

Mitigations

  1. Use a non-impacted version, we recommend 2.31.6 or 2.31.7
  2. Do not enable debug logging: https://github.com/aws/aws-for-fluent-bit/blob/mainline/troubleshooting/debugging.md#enable-debug-logging
  3. Do not use the tail input: https://docs.fluentbit.io/manual/pipeline/inputs/tail

Root Cause

Bad code introduced here: PettitWesley/fluent-bit@ab11d1d

Introduced in AWS for Fluent Bit here: 612f246

flb_sds_printf(&buf, "inode=%"PRIu64", %s, events: ", file->name, file->inode);

The arguments are out of order, file->inode should be first, file->name should be second.