On Wed, Jun 17, 2020 at 5:06 PM Scott Wozny <
saw...@gmail.com> wrote:
>
> OK, so after a little more digging, I see now why there is no logrotate script that comes with the build from source since the files in /var/ossec/logs/alerts, archives and firewall are managed and compressed by ossec, itself. :)
>
> This leaves me with a couple questions, though.
> 1) Is the size of ossec.log managed in the same way or should I have a plan for handling that file as it grows (logrotate or whatever)? I didn't see a date based storage structure like with the other 3 log subdirectories (and the ossec.log has more than a day's worth of data, unlike the other 3), but I wanted to confirm.
OSSEC does not manage the ossec.log file.
> 2) Can / should I be monitoring /var/ossec/logs/ossec.log? My only concern is creating some sort of infinite loop situation where I create a line in the file that causes an alert that causes another line to be created in the file that causes another alert etc... until the disk fills up.
I think that's why it isn't monitored by default. I'd be wary of
monitoring it with itself. Not to say it can't be done, but you'd have
to be careful.
> 3) This is a little off-topic, but what is the purpose of firewall.log? I can't seem to find any reference in the documentation.
>
I don't know. I think the idea was that firewalls log a lot of stuff
all the time, and you don't necessarily want them clogging up the
usual log files. But that's just a guess.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ossec-list/CACUKT_rS8KZL_GHTBQCSARCa%3D-tQ4f4XtTkZxoSzfcV4sXZwbQ%40mail.gmail.com.