# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. sun_one_directory_server_error = { plugin_version = "1.1" # 2007-09-06 - 1.0 - KBB - Initial creation # 2010-10-05 - 1.1 - MSG - Edited info lines. info.1.manfacturer = "Sun Microsystems" info.1.device = "Sun ONE Directory Server Error" info.1.version = "5.2" # The name of the log format log.format.format_label = "Sun ONE Directory Server Error Log Format" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "application" # The log is in this format if any of the first ten lines match this regular expression #[31/May/2007:13:59:08 -0400] - WARNING<20488> - Backend Database - conn=-1 op=-1 msgId=-1 - Detected Disorderly Shutdown last time Directory Server was running, recovering database. log.format.autodetect_regular_expression = '^\\[[0-9][0-9]/[A-Za-z]*/[0-9]*:[0-9][0-9]:[0-9][0-9]:[0-9][0-9] [-+][0-9]*\\] - (WARNING<[0-9]+>|ERROR<[0-9]+>|INFORMATION|DEBUG) - [^-]+ - conn=-1 op=-1 msgId=-1' # The format of dates and times in this log log.format.date_format = "dd/mmm/yyyy:hh:mm:ss" log.format.time_format = "dd/mmm/yyyy:hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { date_time = "" message_type = "" message_code = "" context_data = "" message = "" # consumer_domain = "" # consumer_port = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), '^\\\\[([0-9]+/[A-Z][a-z][a-z]/[0-9:]*) [-+][0-9]*\\] - ((WARNING<[0-9]+>|ERROR<[0-9]+>|INFORMATION|DEBUG).*)')) then ( set_collected_field('', 'date_time', $1); v.message = $2; #[31/May/2007:13:59:08 -0400] - WARNING<20488> - Backend Database - conn=-1 op=-1 msgId=-1 - Detected Disorderly Shutdown last time Directory Server was running, recovering database. if (matches_regular_expression(v.message, '([A-Z]+)<([0-9]+)> - ([^-]+) - conn=-1 op=-1 msgId=-1 - +([^ ].*)')) then ( set_collected_field('', 'message_type', $1); set_collected_field('', 'message_code', $2); set_collected_field('', 'context_data', $3); v.message = $4; ); #[12/Jun/2007:04:42:45 -0400] - INFORMATION - NSMMReplicationPlugin - conn=-1 op=-1 msgId=-1 - Could not send consumer there.there.org:9389 the bind request else if (matches_regular_expression(v.message, '([A-Z]+) - ([^-]+) - conn=-1 op=-1 msgId=-1 - +([^ ].*)')) then ( set_collected_field('', 'message_type', $1); set_collected_field('', 'context_data', $2); v.message = $3; ); #[06/Jun/2007:22:24:13 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 - LOGINFO: Unable to open access file:e:/Program Files/Sun/MPS/slapd-b1wcsz01/logs/access else if (matches_regular_expression(v.message, '([A-Z]+) +- conn=-1 op=-1 msgId=-1 - +([^ ].*)')) then ( set_collected_field('', 'message_type', $1); v.message = $2; ); # if (matches_regular_expression(v.message, '^(.* consumer) ([^:]+):([^ ]+)(.*)$')) then ( # v.message = $1 . $4; # set_collected_field('', 'consumer_domain', $2); # set_collected_field('', 'consumer_port', $3); # ); set_collected_field('', 'message', v.message); accept_collected_entry('', false); ); ` # Database fields database.fields = { date_time = "" message_type = "" message_code = "" context_data = "" message = "" # consumer_domain = "" # consumer_port = "" } # database.fields database.numerical_fields = { events = { default = true requires_log_field = false entries_field = true } # events } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # sun_one_directory_server_error