# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. oracle_application_server_java_exceptions = { plugin_version = "1.0.1" # 2007-02-23 - 1.0beta - KBB - initial creation # 2007-09-14 - 1.0 - KBB - renumbered per new beta policy # 2011-07-11 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Oracle" info.1.device = "Application Server (Java Exceptions)" info.1.version.1 = "" # The name of the log format log.format.format_label = "Oracle Application Server (Java Exceptions)" log.miscellaneous.log_data_type = "other" log.miscellaneous.log_format_type = "application" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "at oracle.jsp.runtimev2" log.format.autodetect_lines = 1000 # Don't introduce whitespace to force text to wrap statistics.sizes.table_cell.maximum_continuous_text_length = 0 statistics.sizes.table_cell.maximum_continuous_text_length_offset = 0 statistics.sizes.table_cell.maximum_text_length = 0 # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" log.format.parse_only_with_filters = true log.format.collected_entry_lifespan = 0 # Log fields log.fields = { date = "" time = "" exception = { type = "hierarchical" hierarchy_dividers = "\n" left_to_right = true leading_divider = false } } # log.fields log.filter_initialization = ` string s_exception = ''; bool isException = false; ` log.parsing_filters.parse = ` v.line = current_log_line(); if (isException) then ( if (v.line eq '') then ( #s_exception = replace_all(s_exception, ' ', '_'); set_collected_field('', 'exception', s_exception); accept_collected_entry('', false); isException = false; s_exception = ''; ); else if (matches_regular_expression(v.line, '^ at (.*)$')) then ( s_exception .= "\n" . $1; ); else ( s_exception .= v.line; ); ); # if isException else ( if (matches_regular_expression(v.line, '^[0-9]{2}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} ([0-9]{4}/[0-9]{2}/[0-9]{2}) ([0-9]{2}:[0-9]{2}:[0-9]{2}):[0-9]+ [^ ]* *\\\\[[A-Z]+\\\\]')) then ( set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); ); if (contains(v.line, 'exception=instance of=class')) then ( isException = true; ); ); # if not isException ` # Database fields database.fields = { date_time = "" #day_of_week = "" #hour_of_day = "" exception.suppress_bottom = 100 } # database.fields database.numerical_fields = { number_of_exceptions = { default = true requires_log_field = true log_field = "exception" type = "int" display_format_type = "integer" entries_field = true } # number_of_exceptions } # database.numerical_fields 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 } # oracle_application_server_java_exceptions