89 lines
2.3 KiB
Plaintext
89 lines
2.3 KiB
Plaintext
|
# WARNING WITH BLANK SPACES AFTER LINE CONTENT!
|
||
|
# This can cause lots of headaches!.
|
||
|
|
||
|
|
||
|
# Include, to load extenal/aditional configuration files
|
||
|
# include /tmp/my_other_configuration.conf
|
||
|
|
||
|
# Directory where temporal indexes will be stored (/tmp by default)
|
||
|
#index_dir /tmp
|
||
|
|
||
|
# Log problems with the logparser, (/tmp/pandora_logparser.log by default)
|
||
|
#logfile /tmp/pandora_logparser.log
|
||
|
|
||
|
# Sample of logparser using a single file and several match cases
|
||
|
|
||
|
|
||
|
|
||
|
# Sample of a single log match
|
||
|
log_begin
|
||
|
log_module_name Weekly
|
||
|
log_location_file /var/log/weekly.out
|
||
|
log_description Errors cannot find
|
||
|
log_type return_lines
|
||
|
log_regexp_begin
|
||
|
log_regexp_rule output
|
||
|
log_regexp_severity WARNING
|
||
|
log_return_message Cannot find process to run
|
||
|
log_regexp_end
|
||
|
log_end
|
||
|
|
||
|
|
||
|
# Sample of wildcard matching of several logfiles within the same module
|
||
|
log_begin
|
||
|
log_rotate_mode md5
|
||
|
log_module_name system_log
|
||
|
log_force_readall
|
||
|
log_location_multiple /var/log/system.log*
|
||
|
log_description Errors cannot find
|
||
|
log_type return_lines
|
||
|
log_regexp_begin
|
||
|
log_regexp_rule Cannot
|
||
|
log_regexp_severity WARNING
|
||
|
log_return_message Cannot find process to run
|
||
|
log_regexp_end
|
||
|
log_end
|
||
|
|
||
|
|
||
|
# Sample of several wildcard matching on the same file
|
||
|
log_begin
|
||
|
log_module_name hits_apache
|
||
|
log_location_file /var/log/apache2/access_log
|
||
|
log_description Access log from Apache, we will get the integria access
|
||
|
#log_create_module_for_each_log
|
||
|
log_type return_ocurrences
|
||
|
log_regexp_begin
|
||
|
log_regexp_rule Error -($1)\-($2) [0-9a-zA-Z]*
|
||
|
log_regexp_severity WARNING
|
||
|
log_return_message Otro bonito texto de error
|
||
|
log_regexp_end
|
||
|
log_regexp_begin
|
||
|
log_regexp_rule File\sdoes\snot\sexist
|
||
|
log_regexp_severity WARNING
|
||
|
log_regexp_end
|
||
|
log_regexp_begin
|
||
|
log_regexp_rule pandora_backend\.html
|
||
|
log_regexp_severity WARNING
|
||
|
log_return_message Something possible harmful happen
|
||
|
log_regexp_end
|
||
|
log_end
|
||
|
|
||
|
# Sample of wildcard matching of several logfiles with diferent dynamic modules
|
||
|
log_begin
|
||
|
log_rotate_mode inode
|
||
|
log_module_name test_log
|
||
|
log_force_readall
|
||
|
# If enabled, this token will create a different module using the module_name
|
||
|
# provided plus the full logfilename replacing / with " ".
|
||
|
log_create_module_for_each_log
|
||
|
log_location_multiple /tmp/log*/hola*
|
||
|
log_description Errors cannot find
|
||
|
log_type return_lines
|
||
|
log_regexp_begin
|
||
|
log_regexp_rule adios
|
||
|
log_regexp_severity WARNING
|
||
|
log_return_message Cannot find process to run
|
||
|
log_regexp_end
|
||
|
log_end
|
||
|
|