LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 04-26-2008, 08:41 AM   #1
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Rep: Reputation: 15
syslog does not display empty log files


My syslog will not display empty files. If a log file is emptied, syslog drops it with an error, "Cannot be displayed" (something like that). Is there a reason for that? This happens on (I believe) all versions of Fedora.

Is there a config setting I need so syslog would display them, even if the log file is empty? My config is untouched from install.

The given log file isn't always empty. There's occasional activity, then cron cleans them out, becoming empty again.

Thanks!

Tom D.
 
Old 04-26-2008, 08:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
syslog doesn't display log files.. i think you've got your wires crossed... syslog is the protocol used for applications and such to pass log data to a centralized location. nothign to do with displaying the contents of logs at all.
 
Old 05-03-2008, 08:56 AM   #3
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
syslog doesn't display log files.....
Yip, you are right...my goof.

I met the gnome-system-log that doesn't display the empty log files and wondering if there's a reason for that. Any config files for tweaking this?

Tom D.
 
Old 05-03-2008, 01:20 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
TBH i never go near any of those sorts of tools. in fact i thought that one had been abandoned because it was so poor. maybe it's been "fixed" since then and reintroduced.

In terms of the error you're having, what's emptying it? logrotate? it's possible to modify the config files for logrotate to run certain commands before or after the rotation, so you could echo a date or something into the file, but if these are standard log files, it naturally shouldn't be being an issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 02:27 AM
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 09:51 AM
howto network syslog with multiple log files mcalizo Red Hat 2 05-27-2005 06:58 AM
Syslog stays empty Etraman Slackware 12 04-20-2005 07:45 PM
Syslog server can't open log files >500mb mikeyt_333 Linux - General 2 01-11-2005 11:32 AM


All times are GMT -5. The time now is 09:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration