I have running in background (SSH)
tail -f access_log | grep 'POST /index.php' > test &
I ran this command inside /var/log/httpd
where the access_log
and error_log
is stored.
I keep doing ls -l
to see if test
file changed size but it's created.. and always 0 bytes.
Am I even using the proper command tail
? to do what I want?
I want to be able to filter out useless access_log information only store the POST /index.php's in a different file.
I know access_log keeps modifying itself even while I am iterating it, but if it's possible to start from top to bottom (head
? i guess) that would be better.