# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. essbase = { plugin_version = "1.1" info.1.manfacturer = "Hyperion" info.1.device = "Essbase" info.1.version = "" info.2.manfacturer = "Oracle" info.2.device = "Essbase" info.2.version = "" # - 1.0 - - Initial creation. # 2008-07-09 - 1.1 - KBB - Added support for () instead of [] around date and space before single # digit dates. Added gathering of message on second line. # The name of the log format log.format.format_label = "Oracle Hyperion Essbase 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 #[Wed Jul 9 09:46:13 2008]Local/ESSBASESAMPLE///Info(1051009) #Setting application Sample active for user [sampleadmin] # #(Thu Aug 2 14:57:46 2007)Local/Sample///Info(1019021) #Reading Database Mapping For [Sample] log.format.autodetect_regular_expression = "^(\\(|\\[)[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9](\\)|\\])[^/]*/[^/]*/[^/]*/[^/]*/[^/]*$" # This regular expression is used to parse the log fields out of the log entry #log.format.parsing_regular_expression = "^.[A-Z][a-z][a-z] ([A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]).([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$" # The format of dates and times in this log log.format.date_format = "mmm dd hh:mm:ss yyyy" log.format.time_format = "mmm dd hh:mm:ss yyyy" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = true # This is to capture the last line log.format.discard_expired_entries = false # Log fields log.fields = { date_time = "" route = "" application = "" database = "" username = "" information = "" } # log.fields log.filter_initialization = ` v.info = ''; ` # Log Parsing Filters log.parsing_filters.parse = ` v.line = current_log_line(); if (matches_regular_expression(v.line, "^.[A-Z][a-z][a-z] ([A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]).([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$")) then ( # Accept the previous entry - the final one will be accepted automatically. # This for backward compatibility, and because the number of info lines is unknown. accept_collected_entry('', false); set_collected_field('', 'date_time', $1); set_collected_field('', 'route', $2); set_collected_field('', 'application', $3); set_collected_field('', 'database', $4); set_collected_field('', 'username', $5); v.info = $6; ); else if (v.line ne '') then ( v.info .= ' - ' . v.line; set_collected_field('', 'information', v.info); ); ` # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" route = "" application = "" database = "" username = "" information = "" } # 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 } # essbase