LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2010, 07:21 AM   #1
felix001
Member
 
Registered: Jan 2009
Posts: 101

Rep: Reputation: 15
syslog asynchronous option


Ive been trying to find some more information on the asynchronous option for syslog. I believe this is where you put a "-" in front of the file name.
Ideally im trying to find 2 things :
  • A good description of what this does.
  • And how to troubleshoot syslog where it is unable to write to the file and logs are lost. Is there anyway to get error counters etc for the logs have that been lost and not written to file ?

Many Thanks,
 
Old 05-22-2010, 12:04 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. "asynchronous" (buffered) syslogging is a performance optimization:
Quote:
http://stackoverflow.com/questions/2...ce-be-improved

You can configure syslogd (and rsyslog at least) not to sync the log files after a log message by prepending a "-" to the log file path in the configuration file. This speeds up performance at the expense of the danger that log messages could be lost in a crash.
2. You want to log the logging failures. Good luck with that

The good news is that logging tends to be very reliable. Especially if you're watchful enough to avoid max'ing out your disk.

If want want to be really paranoid, you can always syslog to some alternate resource (a remote PC or a database are two Pop Favorites), then make sure there's never any delta between what's written to one and the other.

'Hope that helps .. PSM
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding asynchronous signal sky rulz Programming 1 04-22-2009 08:45 AM
syslog-ng with "template" option ksri07091983 Linux - Server 3 09-02-2008 03:14 AM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM
Asynchronous file I/O BradDaBug Programming 5 03-19-2006 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration