Turn on the log all option on the server and provide us with a sample log message.
> Thanks.
--
---
You received this message because you are subscribed to a topic in the Google Groups "ossec-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ossec-list/QeNptAfzGQQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ossec-list+...@googlegroups.com.
Yes I restarted the process on both the server and the agent. The agent is set to send the output every 10 seconds (to test). The server is receiving the output of the command as I could see when tailing the archive.log. Could the server not generate alerts in real time?
Yes but all from log monitoring. But I checked just now, and it has been running for some time now and I still can't see an alert. One thing I noticed is that without the custom decoder and having the rule set to match the output and alert when it sees any number by using the regex "/d" alerts are generated (although not for over 80% as I need it) which could mean that the regex is not matching the actual log. As I posted earlier, in archives.log I find the following log:
2013 Dec 30 15:26:28 (m-s-comm1) 10.152.1.227->mem-usage ossec: output: 'mem-usage':
71%
The percentage is always in a line beneath the log. I don't know if that makes a difference.
In ossec-logtest I input the following as a single line to test:
ossec: output: 'mem-usage': 71%