LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2013, 07:18 AM   #1
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

Rep: Reputation: 1
syslog-ng log_fifo_size


Currently the syslog writes to a fifo, from which a cronjob reads, and therefor empty the fifo.

For several hours, I will need this job to be disabled, and then the fifo gets full pretty quick.
Will increasing the log_fifo_size to a higher value solve this issue, so it will buffer the log, until the fifo is ready to be written to again?
 
Old 09-07-2013, 03:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by LBM View Post
Currently the syslog writes to a fifo, from which a cronjob reads, and therefor empty the fifo.

For several hours, I will need this job to be disabled, and then the fifo gets full pretty quick.
Will increasing the log_fifo_size to a higher value solve this issue, so it will buffer the log, until the fifo is ready to be written to again?
^.*syslog.*$ is for (reasonably) reliable logging of messages to a (any) destination. So unless these messages are expendable in the first place it does not make sense for a destination to be unavailable. So unless you're working with some exotic scenario you haven't told us about I would suggest only loading output filter when needed.
 
Old 09-08-2013, 05:50 AM   #3
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

Original Poster
Rep: Reputation: 1
I am not really sure what you mean exactly?
 
Old 09-08-2013, 06:01 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe start by explaining what you need to do (what's the actual purpose for having a cron job disabled for hours) and why you chose to do it this way (cron job reading fifo)?
 
Old 09-08-2013, 06:07 AM   #5
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

Original Poster
Rep: Reputation: 1
With all respect, this is not really relevant to the question.....

But, it reads log files and insert these into a DB... This cannot currently be changed, because it will require a lot rewrite of code, and/or new setup in a production environment.
 
Old 09-08-2013, 06:25 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
A good understanding of a problem may lead to proper analysis which in turn may lead to being able to offer suitable solutions. As you're not willing to explain your situation properly no analysis is possible. So I'll leave you remarking that Rsyslog has disk queues and disk-assisted memory queues, can read from about any log file and write CSV output or write to databases directly. Good luck.
 
Old 09-08-2013, 10:15 AM   #7
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 114

Original Poster
Rep: Reputation: 1
Yes, I am aware that other solutions is better, like writing to the SQL Server directly, but that is not an option here. It could be, but as mentioned it would require a LOT of rewrite of the code base, and a new setup for which this log is used, which is unfortunately not an option at this point.

Thanks for your time.
 
  


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
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
LXer: OpenLDAP Quick Tips: Using syslog or syslog-ng with slapd for OpenLDAP logging LXer Syndicated Linux News 0 11-14-2008 08:41 PM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 09:51 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 PM.

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