Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

apache logs

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
col
l33t
l33t
User avatar
Posts: 820
Joined: Wed May 08, 2002 3:31 pm
Location: Melbourne - Australia

apache logs

  • Quote

Post by col » Tue Dec 17, 2002 11:13 pm

My apache logs are not rotating. The default directory for the logs is /var/log/apache but none of them rotate. What is the best way to rotate them monthly? I have syslogd installed...can this be used ? Most of my logs in /var/log rotate already.
Top
fuji
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 111
Joined: Fri Apr 26, 2002 8:28 pm

  • Quote

Post by fuji » Tue Dec 17, 2002 11:38 pm

emerge logrotate

This little program does a pretty good job of it....

Just set it up to run in a daily cron job as root... and it'll take care of all. I use it for my mysql logs as well... since they can get pretty large....

man logrotate # for more information...

hope this helps :)
Came for the hype, stayed for Portage.
Top
col
l33t
l33t
User avatar
Posts: 820
Joined: Wed May 08, 2002 3:31 pm
Location: Melbourne - Australia

  • Quote

Post by col » Tue Dec 17, 2002 11:54 pm

can syslog rotate them ? .... as I said my logs in /var/log are already rotating, just not the apache logs ?
Top
seaweed
n00b
n00b
Posts: 53
Joined: Mon Apr 22, 2002 5:04 am
Location: NJ, USA
Contact:
Contact seaweed
Website

syslog cannot rotate logs.

  • Quote

Post by seaweed » Mon Mar 31, 2003 3:28 am

can syslog rotate them ? .... as I said my logs in /var/log are already rotating, just not the apache logs ?
No, syslog is for writing logs.

Since you said that your other logs are rotating I assume you have logrotate.
You just need to add the apache logs to the logrotate config file.
Top
crown
n00b
n00b
User avatar
Posts: 64
Joined: Sat Jun 15, 2002 1:01 am

  • Quote

Post by crown » Mon Mar 31, 2003 3:48 am

He is probably using metalog which is the syslogger suggested by the gentoo install docs. It will rotate logs by default however apache does not use the syslogger. It uses it's own logging mechanism however you can use other tools such as logrotate to rotate them.

Personally I use "cronolog". It's masked by default but you can emerge it by doing

Code: Select all

ACCEPT_KEYWORDS="~x86" emerge cronolog
Then check the docs at http://www.cronolog.org/usage.html for setting it up with apache.
Top
MasterC
Apprentice
Apprentice
Posts: 150
Joined: Sun May 25, 2003 9:48 pm
Location: Woods Cross, UT

  • Quote

Post by MasterC » Sun Jun 29, 2003 11:51 pm

I'd just like to say thank you! I've had great luck from simply searching the forums here! I was searching for info on why my logs are rotating without having logrotate installed. Metalog is a very nice logger I must say.

:)

Cool
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic