Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I stop Apache from purging logs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
happysmash27
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2016
Posts: 136

PostPosted: Mon Jul 13, 2020 8:31 am    Post subject: How do I stop Apache from purging logs? Reply with quote

I was just looking back through my logs to try to re-measure the current market share of Linux machines accessing my website, and have only just now noticed that all logs older than a few weeks are being automatically deleted. How can I stop them from being deleted in order to measure long-term trends? /etc/apache2/modules.d/00_mod_log_config.conf does not seem to have any settings related to the rotatelogs module that is probably doing this.
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 618
Location: Germany

PostPosted: Mon Jul 13, 2020 11:34 am    Post subject: Reply with quote

apache does this not by itself. https://linux.die.net/man/8/logrotate does.
_________________
My personal space
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2813
Location: Canada

PostPosted: Mon Jul 13, 2020 8:04 pm    Post subject: Re: How do I stop Apache from purging logs? Reply with quote

happysmash27 wrote:
I was just looking back through my logs to try to re-measure the current market share of Linux machines accessing my website, and have only just now noticed that all logs older than a few weeks are being automatically deleted. How can I stop them from being deleted in order to measure long-term trends? /etc/apache2/modules.d/00_mod_log_config.conf does not seem to have any settings related to the rotatelogs module that is probably doing this.



Check what is in

/etc/logrotate.d/apache2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum