Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Are there any cron jobs running that may have a command that could periodically clear the log files. Are there other users that have access to the server that could be doing something they shouldn't? have you checked for rootkits? make a script that makes backups of your log files, say every hour, in another location, or can you send the logs to another server and archive them with dates and times in the filename for easier reference.
Just Apache's logs are sent to another server, but those do not have any problem.
A coworker is telling me that maybe it was that the server ran out of space at some point. When that happens, should syslog be restarted? Doesn't it recover itself?
Might it be something related with logrotate? That after reaching the log 4 doesn't start over again?
EDIT: a question about the rotation of logs. When a log rotates, it keeps logging to the new file or to the old one?
For example, if my secure rotated today, events generated today should be logged into secure or into secure.1? I'm asking because I'm noticing that on the server that isn't working it's behaving like this, but on another server that works, it saves the old log to secure.1 and starts a new one on secure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.