10 messages in ru.sysoev.nginxRe: More information out of error log?
FromSent OnAttachments
Ilan BerknerJan 13, 2009 3:05 pm 
mikeJan 13, 2009 3:37 pm 
Nick PearsonJan 13, 2009 3:41 pm 
Aníbal RojasJan 13, 2009 3:50 pm 
Ilan BerknerJan 13, 2009 7:52 pm 
Ilan BerknerJan 13, 2009 7:54 pm 
Ilan BerknerJan 13, 2009 7:56 pm 
Ilan BerknerJan 13, 2009 8:19 pm 
Igor SysoevJan 13, 2009 11:15 pm 
Igor SysoevJan 13, 2009 11:19 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: More information out of error log?Actions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Jan 13, 2009 11:19:49 pm
List:ru.sysoev.nginx

On Tue, Jan 13, 2009 at 11:19:55PM -0500, Ilan Berkner wrote:

So I turned on the access log but I'm concerned that its size is getting larger by the second (and this is off peak). By tomorrow AM, its size may exceed available disk space.

Is there a way to programmatically turn it on or off via the configuration file depending on whether or not an error was generated or a particular type of URL requested?

URL:

access_log off;

location = /letters/.mp3 { access_log /path/to/log format_name; }

404 error:

location / { error_page 404 /404; access_log off; }

location = /404.html { root /path/to/page; access_log /path/to/log format_name; }

Hi All,

We are getting many of these errors:

2009/01/13 13:04:28 [error] 27100#0: *782718 open() "/home/spellcit/public_html/letters/.mp3" failed (2: No such file or directory), client: 204.38.160.220, server: www.spellingcity.com, request: "GET /letters/.mp3 HTTP/1.1", host: "www.spellingcity.com" Essentially one of 2 things is happening:

(1) One of our php or flash files is trying to access this invalid file "/letters/.mp3" or (2) A user is trying to access this directly (unlikely).

The problem is that the log entry does not on the surface reveal enough information about where the request is coming from so we're having a tough time identifying the source of the request. Is there a way (is it possible) to add more information to the log entry to better identify the source of the request (swf, php, html, direct, etc.).

Thanks