Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Syslog-ng has very high cpu usage [CONCLUDED]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
ds123
n00b
n00b
Posts: 66
Joined: Mon Mar 22, 2004 10:36 pm

Syslog-ng has very high cpu usage [CONCLUDED]

  • Quote

Post by ds123 » Fri Jan 04, 2008 9:57 pm

For some reason, syslog-ng has been a cpu hog for a few weeks. I can't seem to find anything meaningful such as logs accumulating a great rate to account for this.

The range is typically somewhere between 50 and 85% utilization as shown using the top command.

Can someone provide me some guidance as to where to start looking for the problem?

Thanks
Last edited by ds123 on Sat Jan 05, 2008 10:15 pm, edited 1 time in total.
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Fri Jan 04, 2008 10:05 pm

can you post your syslog-ng.conf?
What amount of logs do we talk about (do you collect logs from a bigger lan on that box)?
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
ds123
n00b
n00b
Posts: 66
Joined: Mon Mar 22, 2004 10:36 pm

  • Quote

Post by ds123 » Fri Jan 04, 2008 10:19 pm

It is just the default config. I thought I'd try syslog-ng instead of metalog and I haven't gotten around to configuing it yet.

Code: Select all

# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v 1.7 2007/08/02 04:52:1$
#
# Syslog-ng default configuration file for Gentoo Linux
# contributed by Michael Sterrett

options {
        chain_hostnames(off);
        sync(0);

        # The default action of syslog-ng 1.6.0 is to log a STATS line
        # to the file every 10 minutes.  That's pretty ugly after a while.
        # Change it to every 12 hours so you get a nice daily update of
        # how many messages syslog-ng missed (0).
        stats(43200);
};

source src {
    unix-stream("/dev/log" max-connections(256));
    internal();
    file("/proc/kmsg");
};

destination messages { file("/var/log/messages"); };

# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };

Thanks for your help
Top
ds123
n00b
n00b
Posts: 66
Joined: Mon Mar 22, 2004 10:36 pm

  • Quote

Post by ds123 » Fri Jan 04, 2008 10:52 pm

oh, and to answer your other question, there are no other logs posted to this computer.
Top
ds123
n00b
n00b
Posts: 66
Joined: Mon Mar 22, 2004 10:36 pm

  • Quote

Post by ds123 » Sat Jan 05, 2008 10:14 pm

I have switched back to metalog and cpu issues are resolved.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

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