2
votes
1answer
161 views

Hide get parameters from access logs on nginx

I would like to enable access log in order to see statistics about our service, the problem I'm having is that the $request on the access logs format, saves all the GET parameters (which makes sense ...
0
votes
2answers
72 views

nginx access.log only kept for a day

I'm using goaccess on Ubuntu Server 12.04 to view my analytics on my web server. I just run the following utility: goaccess -f /var/log/nginx/access.log However I'm only seeing one days worth of ...
0
votes
1answer
138 views

A good tool for parsing Nginx logs for Django app [closed]

Can anyone recommend a good tool to parse and analyze Nginx access logs which will group the urls based on the regex in my django urls.py files (or a config file generated from them)? It does not ...
0
votes
0answers
89 views

Nginx bytes sent larger then acutal file size

I am using Nginx 1.4.1 and when I looked at the log file and added up the total bytes sent for different files it was larger then the file size. Here is part of the log file 127.0.0.1 - User1 ...
0
votes
0answers
50 views

Who to exclude specific domain from nginx log file

There are a lot of API-Requests to a non existing service. Is there a way to tell nginx that it shouldn't log the request errors for this sub-domain?
0
votes
1answer
234 views

How does nginx handle log file growth by default?

I'm a bit worried because its been a couple of days and my access log file is up to 250MB+. Does it roll log files over and delete them? I'd like for there only to be 1GB or less of log files total.
0
votes
1answer
574 views

How to see the content-type of a response in Nginx log file

Is it possible to see the content-type of a response to a request in Nginx's log file? At the moment, this is what I see for the request in question: 127.0.0.1 - - [23/Nov/2012:10:17:19 -0500] "GET ...
1
vote
3answers
862 views

nginx: log empty calls

Does nginx have an option to ignore health checks or buckets from load balancer against nodes? There are thousands of entries like 93.190.2.176 - - [24/Jul/2012:08:56:59 +0200] "-" 400 0 "-" ...
2
votes
1answer
2k views

A lot of errors 400 access.log with Nginx and loadbalancer

Hy, I have juste install nginx for my website, and everything is working well and very fast :) But i have this kind of error in my access log : IP - - [30/Dec/2011:11:06:00 +0000] - "-" 400 0 "-" ...
0
votes
1answer
462 views

nginx: rewrite URL but have original URL stored in access.log as 200

I'm setting up a link tracking system, which (temporarily) involves adding /link/id/ in front of URL (like http://server/data/id/publication/id/). rewrite data/id/(.*) http://server/$1; The request ...
3
votes
2answers
892 views

How can I keep my web server's log files from becoming too large?

Note: I am using Apache2 (on Linux), but I asked in a general sense (for Linux only) because I'd also like to know the "best" way to do accomplish this in a general (since I'm about to deploy a large ...
1
vote
2answers
2k views

How to add recently set cookies to nginx's access log

I'd like to include cookie data in an nginx access log like so: (simplified example) log_format foo '$remote_addr "$request" $cookie_bar'; access_log /var/log/nginx/access.log foo; This works ...
2
votes
4answers
2k views

nginx logrotate config

Whats the best way to rotate nginx logfiles? In my opinion, I should create a file "nginx" in /etc/logrotate.d/ and fill it with the following code and do a /etc/init.d/syslog restart after that. ...
3
votes
1answer
659 views

Is it possible to specify custom error log format in nginx?

I can specify custom log format for access log in nginx, but it won't work for error log. I wish I always saw time when error occur. Is it possible?
3
votes
5answers
6k views

nginx error log was huge, so I deleted and created a new one, now nginx won't start

I deleted the /var/log/nginx/error.log file, and then created a new one using: sudo nano error.log Doinga ls -la shows that the error.log and access.log have the same permissions. When I try and ...
7
votes
3answers
675 views

What is the best tool to aggregate traffic stats from multiple nginx servers?

The setup: 2 or more nginx machines each machine has the same virtual hosts traffic is load balanced via DNS to each machine I need to figure out what are the best tools to use to get some traffic ...
2
votes
6answers
3k views

Get list of user-agents from nginx log

I have nginx log file, and I want to find out market share for each major version of browsers. I am not interested in minor versions and operating systems. I would like to get something like this: ...
8
votes
5answers
7k views

Proper way to rotate Nginx logs

I would like to achieve rotation of nginx logs that: would work without any extra software (i.e. - best if without "logrotate") would create rotated files with names based on date Best approach is ...
1
vote
2answers
3k views

nginx access logs ignore certain requests

I'm running nginx behind haproxy (running on the same server). I've configured haproxy to use a simple html file on nginx to verify the service is up, since I don't have/want a valid "/" URL on this ...
2
votes
1answer
3k views

Best practices for web server log archiving (Linux + Nginx)

I want to preserve/archive all of my web server logs, and not have any of them be deleted by logrotate. What would a recommended approach be for this? This is a Linux box, running Nginx. Thanks in ...