Answer the question
In order to leave comments, you need to log in
Tail + grep + uniq how to combine?
How to force in a stream to deduce the data? Everything is done by a single command
grep "unix:/tmp/php-fpm.sock" access.log | cut -d ' ' -f 1 | sort | uniq -c | sort -n
tail -f access.log | grep --line-buffered "unix:/tmp/php-fpm.sock" | cut -d ' ' -f 1 | sort | uniq -c | sort
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question