I want to monitor nginx access.log for malformed requests and notify myself about such cases.
To do this i have written following command:
tail -n0 -f access.log | grep --line-buffered '\{' | xargs sentry-cly -m
But this solution doesn't work for some reason. If i remove last pipe and end with grep only - i will see output as log file get new records.
I don't understand why xargs not executed. It will be the same if you replace sentry-cli with cat or echo.
Could you clarify why I have such behavior?