Reducing log


#1

my nginx log example.com.error.log1 & 2 & 3 & 4 fill up my disk about 2~3gb each before compress, after archived is about 200~300mb each, can someone help, thank in advance


#2

Like auto cleaning old logs?


#3

yes if able to limit it to 8~10 logs, is the hugh log size seen as normal ? tq


#4

Hi @RoldanLT

You may edit the following logrotate config. file to suit your needs :

/etc/logrotate.d/nginx

Refer this tutorial.

Thanks.


#5

great i will give it a try, report back, thank you


#6

thanks all, it works for me but i found that mysql ie mariadb-bin.000200 keep logging hugh and many.


#7