(tail -f with grep) - Im missing some lines
by dr.x from LinuxQuestions.org on (#4RJT6)
Hello Folks ,
i have a dynamic log file i want to keep reading it .
i have about 20 log files and i read them by tail -f /var/log/x*.log
x1 , x2 , x3 , x4 .... x20
the problem is when i do :
tail -f /var/log/x*.log
im able to see lines say 20 lines per second .
but when i do :
tail -f /var/log/x*.log | grep -v "fire" | grep -v "cold"
i see less than 20 lines .
it seems like there is someday somewhere or missing some lines .
im not sure what could be best way to not miss any line in my log files from tailing above .
Thanks a lot .


i have a dynamic log file i want to keep reading it .
i have about 20 log files and i read them by tail -f /var/log/x*.log
x1 , x2 , x3 , x4 .... x20
the problem is when i do :
tail -f /var/log/x*.log
im able to see lines say 20 lines per second .
but when i do :
tail -f /var/log/x*.log | grep -v "fire" | grep -v "cold"
i see less than 20 lines .
it seems like there is someday somewhere or missing some lines .
im not sure what could be best way to not miss any line in my log files from tailing above .
Thanks a lot .