Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Ubuntu Help
Reload this Page LOGGING !!!!! duplicate triplicate
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Ubuntu Help Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Reply
 
Thread Tools Display Modes
Old 07-05-2008   #1 (permalink)
c0mputerking2
Just Joined!
 
Join Date: Jun 2008
Posts: 7
LOGGING !!!!! duplicate triplicate

I am having problems with my log files they have become huge. I have several programs that dump tons of stuff to the logs have a couple of questions.

I have setup bandwidth monitoring using webmin and it makes the logs very large. Why do things get logged in so many places? i see the bandwidth stuff in
/var/log/bandwith
/var/log/syslog
/var/log/kernel
also in dmesg

Next i have a noisy mail program that fills up

/var/log/messages
/var/log/syslog
/var/log/debug
/var/log/maillog
/var/log/mailprogram

I do nightly remote backups and this amount redundant constantly changing data is costing me alot of money.

Please how do i stop these programs from spewing logfiles everywhere.

ps i am running ubuntu 6.06.2 LTS server
c0mputerking2 is offline   Reply With Quote
Old 07-05-2008   #2 (permalink)
objuan
Linux Newbie
 
objuan's Avatar
 
Join Date: Jul 2006
Location: california
Posts: 217
hello

Read the manpages for logrotate then reconfigure the /etc/logrotate.conf
__________________
--------------------------
Linux is the FORCE
objuan is offline   Reply With Quote
Old 07-05-2008   #3 (permalink)
c0mputerking2
Just Joined!
 
Join Date: Jun 2008
Posts: 7
Quote:
Originally Posted by objuan View Post
hello

Read the manpages for logrotate then reconfigure the /etc/logrotate.conf
how does logrotate help me with duplicate log entries should you not be pointing me to the syslog man page?

I want to fix what gets logged where not when to rotate the logs
c0mputerking2 is offline   Reply With Quote
Old 07-05-2008   #4 (permalink)
objuan
Linux Newbie
 
objuan's Avatar
 
Join Date: Jul 2006
Location: california
Posts: 217
Quote:
Originally Posted by c0mputerking2 View Post
I am having problems with my log files they have become huge.
Your logrotate should be compressing those log files weekly, but you can change them to daily. You should be able to change how webmin does its logging.
__________________
--------------------------
Linux is the FORCE
objuan is offline   Reply With Quote
Old 07-06-2008   #5 (permalink)
SwellJoe
Just Joined!
 
Join Date: Sep 2007
Posts: 5
Webmin bandwidth monitoring just configures logging in iptables. Your system happens to have the iptables logging configured to log to a lot of places (that's probably unnecessary and undesirable for many reasons). Reconfigure it to log to the one place you want it to log. On many systems this is configured in the syslog.conf file--kern.LEVEL (where LEVEL is something like "warning" or similar--the levels are documented in the syslog man page, among other places, but I don't recall off-hand what level Webmin uses for its bandwidth log entries...probably worth looking at the generated iptables rules to find out).
SwellJoe is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 11:32 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0