# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. passlogd = { # Passlogd Syslog Format # The name of the log format log.format.format_label = "Passlogd Syslog Format" 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 = "^[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] [^ :]* " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" # Log fields log.fields = { date = "" time = "" logging_device = "" syslog_message = "" } # log.fields # # Log Parsing Filters log.parsing_filters = { syslog_parse = " v.syslog_message = ''; if (matches_regular_expression(current_log_line(), '^[A-Za-z]* ([A-Za-z]* *[0-9]* [0-9:]* [0-9]*) ([^ ]*) (.*)$')) then ( set_collected_field('', 'date', normalize_date($1, 'mmm dd hh:mm:ss yyyy')); set_collected_field('', 'time', normalize_time($1, 'mmm dd hh:mm:ss yyyy')); set_collected_field('', 'logging_device', $2); v.syslog_message = $3; ); " } # log.parsing_filters # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" logging_device = "" } # 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 = "" logging_device = true } # report_groups } # create_profile_wizard_options not_supported = { } # not_supported } # passlogd