Problem with tail of Master.csv

HI Everyone,
I am currently tailing a custom Master.csv and performing an operation on each new line using the script snippet below. I am running into a problem where when several calls end at the same time the first part of the tailed line is missing. When I look for the CDR in Master.csv I see the line was written in full.

The processing part could take a few seconds I am wondering if I am somehow overflowing a buffer or something?

[code]tail -F /var/log/asterisk/cdr-custom/Master.csv | while read line
do
log $line

do some processing

done
[/code]

Solved the issue so I’ll add it here for reference.

The processing part involved using ffmpeg to convert recorded audio this was somehow affecting the input buffer. Directing ffmpeg to /dev/null fixed it