Article 4RJT6 (tail -f with grep) - Im missing some lines

(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 .latest?d=yIl2AUoC8zA latest?i=CS14VI6_rsk:7fvS98ebsUU:F7zBnMy latest?i=CS14VI6_rsk:7fvS98ebsUU:V_sGLiP latest?d=qj6IDK7rITs latest?i=CS14VI6_rsk:7fvS98ebsUU:gIN9vFwCS14VI6_rsk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments