Hi Dan, thanks for the help.

Q: Are you receiving alert emails?
A: No, I don't have that configured.

Q: What are the permissions for /var/ossec/log?
A: drwxr-x---  5 ossec    ossec  4096 2011-01-05 09:21 logs

Q: What are the permissions for the files within /var/ossec/log?
A:
$ sudo ls -l /var/ossec/logs/
drwxr-x--- 4 ossec ossec    4096 2011-01-11 00:00 alerts
drwxr-x--- 4 ossec ossec    4096 2011-01-11 00:00 archives
drwxr-x--- 4 ossec ossec    4096 2011-01-11 00:00 firewall
-rw-rw-r-- 1 ossec ossec  748041 2011-01-11 15:12 ossec.log

$ sudo ls -l /var/ossec/logs/alerts
drwxr-x--- 4 ossec ossec 4096 2010-12-01 00:01 2010
drwxr-x--- 3 ossec ossec 4096 2011-01-01 00:01 2011
-rw-r----- 2 ossec ossec    0 2011-01-11 00:00 alerts.log

Q: What ossec processes are running?
A:
$ ps -ef | grep ossec
ossecm   14581     1  0 Jan05 ?        00:00:02 /var/ossec/bin/ossec-csyslogd
root     14587     1  0 Jan05 ?        00:00:00 /var/ossec/bin/ossec-execd
ossec    14591     1  0 Jan05 ?        00:19:55 /var/ossec/bin/ossec-analysisd
root     14596     1  0 Jan05 ?        00:00:05
/var/ossec/bin/ossec-logcollector
ossecr   14601     1  0 Jan05 ?        00:38:46 /var/ossec/bin/ossec-remoted
root     14608     1  0 Jan05 ?        00:00:20 /var/ossec/bin/ossec-syscheckd
ossec    14611     1  0 Jan05 ?        00:00:24 /var/ossec/bin/ossec-monitord

Q: Is SELinux installed/enabled?
A: I don't believe so, is there a command I can run to verify?

Thanks,
Patrick


On Tue, Jan 11, 2011 at 2:02 PM, dan (ddp) <[email protected]> wrote:
> Hi Patrick,
>
> On Tue, Jan 11, 2011 at 11:54 AM, Patrick Melvin
> <[email protected]> wrote:
>> Hello, I've run into another issue after "resolving" the last one.
>> The OSSEC server is not sending logs remotely to a log collector.
>> ossec-csyslogd shows in the logs that it starts ok, and is configured
>> to forward logs via syslog to the IP address specified in the
>> ossec.conf.  I've verified that the OSSEC server has connectivity to
>> the log collector over 514/udp.  I've also made file changes, etc. to
>> monitored files/directories on a Windows appliance that has an agent
>> running to test logging, and no logs.
>>
>> Not sure if this is relevant or not, but alerts.log has been blank
>> every day.  I'm also getting an odd log from remoted:
>>
>> 2011/01/11 11:38:53 ossec-remoted: INFO: Event count after '20000':
>> 15594243->6353696 (40%)
>>
>> Thanks in advance,
>> Patrick
>>
>
> It looks like you're having more issues than sending syslog. You'll
> need to track down why the alerts.log file isn't being logged to.
> Are you receiving alert emails?
> What are the permissions for /var/ossec/log? And the files inside? The
> ossec processes will need write access to the log files.
> What ossec processes are running?
> Is SELinux installed/enabled? Is it blocking ossec somehow?
>

Reply via email to