# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. windows_event_log_comma_delimited = { plugin_version = "1.1.2" info.1.manufacturer = "Microsoft" info.1.device = "Windows Event Log (CSV)" info.1.version.1 = "Windows Server 2003 R2 SP2 Standard Edition" # tested with Windows Server 2003 R2 SP2 Standard Edition - Traditional Chinese # ????-??-?? - 1.0 - ??? - Initial implementation # 2010-04-14 - 1.1 - GMF - Added support for variant date (yyyy-mm-dd), and optional Chinese AM/PM on time. # 2011-07-26 - 1.1.2 - MSG - Edited info lines. # The name of the log format log.format.format_label = "Windows Event (Comma Delimited) Log Format" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "other" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[0-9]+[/-][0-9]+[/-][0-9]+,[^,]*[0-9]+:[0-9][0-9]:[0-9][0-9] *[AP]*M*,[^,]*,[^,]*,[^,]*,[0-9]*,[^,]*,[^,]*,\"*(.*)\"*$" log.format.ignore_format_lines = "true" log.format.allow_newlines_inside_quotes = "true" # This regular expression is used to parse the log fields out of the log entry log.format.parsing_regular_expression = "^([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 = "auto" log.format.time_format = "auto" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 dividers = "" left_to_right = false leading_divider = "false" } # date time_prefix = "" time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 dividers = "" left_to_right = false leading_divider = "false" } # time source = { label = "$lang_stats.field_labels.source" type = "flat" index = 0 subindex = 0 } # source type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type category = { label = "$lang_stats.field_labels.category" type = "flat" index = 0 subindex = 0 } # category error_number = { label = "$lang_stats.field_labels.error_number" type = "flat" index = 0 subindex = 0 } # error_number security_context = { label = "$lang_stats.field_labels.security_context" type = "flat" index = 0 subindex = 0 } # security_context computer_name = { label = "$lang_stats.field_labels.computer_name" type = "flat" index = 0 subindex = 0 } # computer_name message = { label = "$lang_stats.field_labels.message" type = "flat" index = 0 subindex = 0 } # message } # log.fields log.parsing_filters.parse = ` # If this is Chinese for "afternoon", add 12 hours to the date. if ((time_prefix eq "下午") and matches_regular_expression(time, '^([0-9]+):([0-9]+):([0-9]+)$') and ($1 < 12)) then time = ($1 + 12) . ':' . $2 . ':' . $3; ` # 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 source = { label = "$lang_stats.field_labels.source" log_field = "source" type = "string" suppress_top = 0 suppress_bottom = 2 } # source type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type category = { label = "$lang_stats.field_labels.category" log_field = "category" type = "string" suppress_top = 0 suppress_bottom = 2 } # category error_number = { label = "$lang_stats.field_labels.error_number" log_field = "error_number" type = "string" suppress_top = 0 suppress_bottom = 2 } # error_number security_context = { label = "$lang_stats.field_labels.security_context" log_field = "security_context" type = "string" suppress_top = 0 suppress_bottom = 2 } # security_context computer_name = { label = "$lang_stats.field_labels.computer_name" log_field = "computer_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # computer_name message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message } # database.fields database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" 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 = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" source = true type = true category = true error_number = true security_context = true computer_name = true message = true } # report_groups } # create_profile_wizard_options not_supported = { individualhosts = true visitors = true sessions = true pageviews = true bandwidth = true } # not_supported } # windows_event_log_comma_delimited