Nginx access.log only kept for a day

goaccesslog-filesloggingnginxUbuntu

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 data. I was wondering if there are some default setting within nginx to manage this? I've read a little about log file rotation but that really isn't a problem for me at the moment. It appears something is keeping the access.log from showing more than a day.

Can't seem find anything in the nginx documentation to play with some settings.

Best Answer

You can also run it as:

zcat -f access.log* | goaccess

to avoid creating a new file.