Artificial ignorance is a method to detect anomalies. When applied to log analysis, it means that you ignore the regular, common log messages - these are the result of the regular behavior of your system, and therefore are not too interesting. However, new messages that have not appeared in the logs before can sign important events, and should be therefore investigated. "By definition, something we have never seen before is anomalous" (Marcus J. Ranum).
The syslog-ng application can classify messages using a pattern database: messages that do not match any pattern are classified as unknown. This provides a way to use artificial ignorance to review your log messages. You can periodically review the unknown messages — syslog-ng can send them to a separate destination - and add patterns for them to the pattern database. By reviewing an manually classifying the unknown messages, you can iteratively classify more and more messages, until the only the really anomalous messages show up as unknown.
Obviously, for this to work, a large number of message patterns are required. The radix-tree matching method used for message classification is very effective, can be performed very fast, and scales very well; basically the time required to perform a pattern matching is independent from the number of patterns in the database.
To simplify the building of pattern databases, BalaBit has released (and will continue to release) sample databases. Currently the following pattern databases are available at the BalaBit Download page http://www.balabit.com/network-security/syslog-ng/log-server-appliance/:
a database for the log messages of Cisco PIX firewalls;
the database of the Logcheck project (http://logcheck.org/) containing message patterns for a large number of open source applications;
a database for the log messages of the Zorp Application Level Gateway (http://www.balabit.com/network-security/zorp-gateway/) (developed by BalaBit IT Security).
© 2007-2010 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com