Log incoming requests

Posted by Maxim Eliseev on Ask Ubuntu See other posts from Ask Ubuntu or by Maxim Eliseev
Published on 2013-07-02T10:35:27Z Indexed on 2013/07/02 11:14 UTC
Read the original article Hit count: 377

Filed under:
|
|
|

We have Tomcat running on Ubuntu server. It runs a web service, open to the internet.

Sometimes it has sudden spike of traffic and goes down. There is nothing unusual in Tomcat access logs. I guess because some of the requests are so 'heavy' that they never finish and hence are not recorded to Tomcat access logs.

Is there a way to configure Ubuntu to log incoming requests in the following format (below)?

Date, Time, URL (with query string params), IP address (of client)

There should be one line per request. Each request should be logged before it is executed. Only incoming requests to ports 80 and 443 should be logged.

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about server