How to force to output data in a stream? With a single command, everything is done
grep"unix: /tmp/php-fpm.sock" access.log | cut -d''- f 1 | sort | uniq -c | sort -n

tail -f doesn't work
tail -f access.log | grep --line-buffered"unix: /tmp/php-fpm.sock" | cut -d''- f 1 | sort | uniq -c | sort

1 Answers 1

and how do you want sort to work until your output is over?
run through watch -n 1
  • it doesn’t work in this way either
    watch -n 1'tail -f access.log | grep --line-buffered"unix: /tmp/php-fpm.sock" | cut -d"" -f 1 | uniq -c'
    – Search for Nov 21 '18 at 21:41
  • You can close the question, thought of it, thank you
    watch -n 1'grep"unix: /tmp/php-fpm.sock" access.log | cut -d"" -f 1 | sort | uniq -c | sort -n | tail -n 30'
    – Search for Nov 21 '18 at 21:47