# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. ipcop_syslog = { plugin_version = "1.1" # Initial creation - 1.0 # 2011-01-11 - 1.0.1 - MSG - Edited info lines. # 2014-02-09 - 1.1 - GMF - Added support for date header lines like ": January 28, 2014" info.1.manufacturer = "IPCop" info.1.device = "Syslog Server" info.1.version.1 = "" # IPCop Syslog # The name of the log format log.format.format_label = "IPCop Syslog" log.miscellaneous.log_data_type = "syslog" log.miscellaneous.log_format_type = "syslog_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^IPCop firewall log" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Extract the date from the filename-- the log data doesn't have dates on every lines, # and doesn't have years anywhere. log.format.global_date_filename_regular_expression = "([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])-fw" # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time syslog_message = "" } # log.fields # # Log Parsing Filters log.parsing_filters = { syslog_parse = " v.syslog_message = ''; # : January 28, 2014 if (matches_regular_expression(current_log_line(), ': ([A-Z][a-z][a-z])[a-z]* ([0-9]+), ([0-9]+)')) then set_collected_field('', 'date', $2 . '/' . $1 . '/' . $3); else if (matches_regular_expression(current_log_line(), '^([0-9:]+) (.*)$')) then ( set_collected_field('', 'time', $1); v.syslog_message = $2; ); " } # log.parsing_filters # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day } # database.fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'hits = 1;page_views = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options not_supported = { } # not_supported } # ipcop_syslog