# Copyright (c) 2014 Flowerfire, Inc. All Rights Reserved. openvpn_header = { plugin_version = "1.0" # 2014-02-09 - 1.0 - GMF - Initial creation info.1.manufacturer = "OpenVPN technologies" info.1.device = "OpenVPN Header" info.1.version.1 = "" # Unix Syslog # The name of the log format log.format.format_label = "OpenVPN Header" 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 = "^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[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 = "" syslog_message = "" } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the syslog fields syslog_1 = { label = "syslog_1" comment = "" value = " v.syslog_message = ''; if (matches_regular_expression(current_log_line(), '^([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]) ([0-9][0-9]:[0-9][0-9]:[0-9][0-9])[+-][0-9][0-9][0-9][0-9] [[]-[]] (.*)$')) then ( set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); v.syslog_message = $3; ) " } # syslog_1 } # log.parsing_filters # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" } # database.fields 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 } # openvpn_header