OSSEC::Log - Module/class for simplifying logging of OSSEC log messages
version 0.1
This Module/Class is part of the OSSEC distribution. It simplifies logging to files, e.g. for active response. You are able to use different logging types (info,error,fatal,debug) and select the file to log to. See the methods below.
base path to the ossec installation default /var/ossec
Type: String
In which file to log the messages. The file should be given as the path relative to the OSSEC configuration file.
log error message
log->error("OSSEC-Jabber","alert not found");
log fatal message and die
log->fatal("OSSEC-Jabber","could not connect to mysql server");
log info message
log->info("OSSEC-Jabber","alert send");
log debug message
log->error("OSSEC-Jabber","found alert in database");
log messages to the logfile
Domink Meyer <dmeyer@federationhq.de>
This software is Copyright (c) 2019 by Dominik Meyer.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install OSSEC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OSSEC
CPAN shell
perl -MCPAN -e shell install OSSEC
For more information on module installation, please visit the detailed CPAN module installation guide.