SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
syslog file is empty, syslog.1 has a log up to Sep 25. syslog.2 has up to Sep 20. syslog.3 has up to Sep 13. This is unrealted but other issues I am noticed is an error with NFSD saying "unable to create client record with stable storage: -110" and my cron entries for rsnapshot are not running, but that is unrelated.. Now if anyone has read my previous posts, the HDD Slackware is on has bad sectors, I haven't had time to purchase a new HDD...well not so much purchasing but copying Slackware onto a new HDD because of school. So I am not sure if it is normal for syslog to be empty or if its an issue related with a bad sector on my drive.
syslog won't get anything if nothing changes on your system of any significance.
I.e. if you don't plug in or remove a USB drive, or raise/lower a network interface. Then basically you won't see any newly added syslog entries.
I will grant that it's over a week old since the last rotation; however on my dev system I really won't see any syslog entries because I don't allow it to hibernate, sleep, or other. And I don't generally plug in or remove drives unless that happens to be related to something I'm working on. So, if there are no relevant logs, it's perfectly fine that there are no syslog entries. What shows last in the last rotated log, syslog.1? Seems obvious to me that you're rotating in forced mode such that it will rotate no matter what the size.
And then plug in a USB stick and remove it and see if you get new syslog entries. Or lower and re-raise a network connection. Same thought process there.
syslog won't get anything if nothing changes on your system of any significance.
really?
i remember, some time ago there is a "MARK" entry each ten minutes in syslog, even if no any changes.
thanks to that "mark" records can be determined, about in what clock machine is lock-up, for example....
# Log anything 'warn' or higher.
# Exclude authpriv, cron, mail, and news. These are logged elsewhere.
*.warn;\
authpriv.none;cron.none;mail.none;news.none -/var/log/syslog
I think the "-- MARK --" line appears only in /var/log/messages, every 20 minutes if there's no other activity.
it's controlled by the -m option of syslogd (see the man page): you can change it passing that option with desired interval when launching it from /etc/rc.d/rc.syslog (line 10).
if, for example, you change line 10 of the above file from
Either case just follow szboardstretcher's recommendation, test that you do or don't get new records in your syslog and then update whether or not this was merely log rotation and nothing further which caused the zero sized syslog file.
I have a feeling the system borked itself once more (this is the bad sector errors fault, last time this happened I had to run fsck and hit yes a bunch of times to restore stuff). I am afraid of rebooting it but I probably will have to and that problem will probably occur again.
So anyway, I tried
Code:
logger IM A TEST
tail /var/log/syslog
And syslog is still empty...I am going to do a reboot and see if it fails rebooting as normally that happens when there are more bad sector errors.
That's because the default priority is "user.notice", so it goes to /var/log/messages. It has to be at least a warning level to be logged in the syslog (with the default configuration of course).
That's because the default priority is "user.notice", so it goes to /var/log/messages. It has to be at least a warning level to be logged in the syslog (with the default configuration of course).
Try this:
Code:
logger -p user.warning HELLO
I rebooted the machine, surpsingly no errors were found and things were written back into syslog file.
Doing that command logger -p user.warning HELLO also worked so I think it is fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.