ubuntu - Best Practices for Error and Access Log Files -


i got server has @ moment lot of access , error logs. i'm using ubuntu 12.04 , nginx.

my question best practices keep files under control not loose track of going on? best balance? should use ubuntu crons or nginx can handle itself? indicate documentation?

a option use third-party service store , parse logs (for example logentries.com).

if want preserve privacy on log's content , worried content sent don't know, can self-host similar tool logstash.net

if manage them in old-fashion way can configure syslog push logs on remote machine confortable check them.

speaking nginx log little trick configure access , error log on per-server basis, if have nginx serving foo.com , bar.org store them in

/var/www/foo.com/logs/ [for foo.com domain] /var/www/bar.org/logs/ [for bar.org domain] 

in way have them separated , can check happening on each domain independently


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -