This test verifies that the read position of a file is reset in the event of truncation. Failing to do so typically results loss of any new data written to the file.
- Each subject is configured to tail a test log file and send it to a downstream service.
- The subject is started.
- The test log file is truncated.
- A unique new line is added to the test log file.
- Assert that the downstream service received the unique new line.
| Subject | Result |
|---|---|
| Filebeat | ✅ |
| FluentBit | ✅ |
| FluentD | ✅ |
| Logstash | ✅ |
| Splunk HF | ✅ |
| Splunk UF | ✅ |
| Vector | ✅ |
You can run this test via:
test -t file_truncate_correctness