# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. windows_syslog = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-27 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Microsoft" info.1.device = "Windows Syslog" info.1.version.1 = "" # Windows Syslog Format # The name of the log format log.format.format_label = "Windows Syslog Format" log.miscellaneous.log_data_type = "network" 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] [0-9][0-9]* [0-9][0-9]*:[0-9][0-9]:[0-9][0-9] [^ ]* AT [0-9][0-9]:[0-9][0-9]:[0-9][0-9]: Facility " statistics.miscellaneous.entry_name = "events" # The format of dates and times in this log log.format.date_format = "mmm/dd" log.format.time_format = "hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # 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 server_host = { label = "$lang_stats.field_labels.server_host" type = "flat" index = 0 subindex = 0 } # server_host time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time facility = { label = "$lang_stats.field_labels.facility" type = "flat" index = 0 subindex = 0 } # facility severity = { label = "$lang_stats.field_labels.severity" type = "flat" index = 0 subindex = 0 } # severity message = { label = "$lang_stats.field_labels.message" type = "flat" index = 0 subindex = 0 } # message user = { label = "$lang_stats.field_labels.user" type = "flat" index = 0 subindex = 0 } # user action = { label = "$lang_stats.field_labels.action" type = "page" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # action protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip authenticated = { label = "$lang_stats.field_labels.authenticated" type = "flat" index = 0 subindex = 0 } # authenticated type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the header 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()([A-Z][a-z][a-z] [0-9]+) ([0-9:]+) ([^ ]*) AT [0-9:]* Facility \"([^\"]*)\", Severity \"([^\"]*)\":: (.*)', '*KEY*,date,time,server_host,facility,severity,message')" } # 1 # Parse connection dropped lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()The connection.*was (dropped) for user (.*)', '*KEY*,action,user')" } # 2 # Parse successful RADIUS authentication lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()(successful RADIUS authentication) for user: (.*)', '*KEY*,action,user')" } # 3 # Parse successfully connected lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()User (.*) (successfully connected to the PPP process)', '*KEY*,user,action')" } # 4 # Handle session connected lines 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('()User (.*) (session connected|session disconnected) protocol: ([^ ]*) - ip address: (.*)', '*KEY*,user,action,protocol,source_ip')" } # 5 # Handle User Manager lines 6 = { label = "6" comment = "" value = "collect_fields_using_regexp('()Facility \"User Manager\", [^:]*:: [^ ]* ([^:]*): user name: (.*) - session: [0-9]+ - port [0-9]+ - authenticated: ([^ ]*) - type: ([^ ]*) - protocol: ([^ ]*) - ip address: (.*)', '*KEY*,action,user,authenticated,type,protocol,source_ip')" } # 6 # Accept this line 7 = { label = "7" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 7 } # log.parsing_filters # Log Filters 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 # 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 server_host = { label = "$lang_stats.field_labels.server_host" log_field = "server_host" type = "string" suppress_top = 0 suppress_bottom = 9 } # server_host facility = { label = "$lang_stats.field_labels.facility" log_field = "facility" type = "string" suppress_top = 0 suppress_bottom = 2 } # facility severity = { label = "$lang_stats.field_labels.severity" log_field = "severity" type = "string" suppress_top = 0 suppress_bottom = 2 } # severity message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message user = { label = "$lang_stats.field_labels.user" log_field = "user" type = "string" suppress_top = 0 suppress_bottom = 2 } # user action = { label = "$lang_stats.field_labels.action" log_field = "action" type = "string" suppress_top = 0 suppress_bottom = 2 } # action protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip authenticated = { label = "$lang_stats.field_labels.authenticated" log_field = "authenticated" type = "string" suppress_top = 0 suppress_bottom = 2 } # authenticated type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type } # database.fields log.field_options = { sessions_page_field = "action" sessions_visitor_id_field = "user" sessions_event_field = "page_views" } # log.field_options 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 visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "user" type = "unique" display_format_type = "integer" } # visitors } # database.numerical_fields create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" server_host = true facility = true severity = true message = true user = true action = true protocol = true source_ip = true authenticated = true type = true } # report_groups } # create_profile_wizard_options not_supported = { pageviews = true bandwidth = true } # not_supported } # windows_syslog