# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. syslog_ng_no_year = { plugin_version = "1.0" info.1.manufacturer = "BalaBit IT Security" info.1.device = "Syslog-NG (No Year)" info.1.version = "" # 2008-07-14 - KBB - 1.0 - Initial creation. # 2010-10-01 - MSG - 1.1 - Edited info lines # The name of the log format log.format.format_label = "Syslog NG Log Format (date with no year)" 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 # syslog portion ends with " : ". The message portion in this example is from Apache error log. #Jun 14 05:33:57 : [Sat Jun 14 05:33:57 2008] [error] [client 88.88.88.87] File does not exist: /var/www/www.somewhere.com/images/spacer.gif log.format.autodetect_regular_expression = "^[A-Za-z]{3} [0-9 ][0-9] [0-9]{2}:[0-9]{2}:[0-9]{2} : " # 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 = "" 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]{3} [0-9 ][0-9]) ([0-9]{2}:[0-9]{2}:[0-9]{2}) : ([^ ].*)$')) then ( set_collected_field('', 'date', normalize_date($1, 'mmm dd')); set_collected_field('', 'time', $2); v.syslog_message = $3; ); ` # Database fields database.fields = { date_time = "" day_of_week = "" 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 = '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 } # syslog_ng_no_year