Hi
I have an apache server setup where I have different rules using <location>. Essentially, I have a test environment "/test/" and I would like to capture the logs for activity in this location and direct it into a separate log.
I know that perhaps I should have set up virtual hosts, but I wasn't aware of them at the time and the change over can not be accommodated at the moment (the change control wouldn't be agreed). I was wondering if it could be done using environment variables.
At the moment I use
Code:
tail -f /var/log/httpd/error_log | grep "/test/"
but this does miss out some messages, particularly multiple line SOAP messages.
Any suggestions would be welcome. Thanks.
Mark