barracuda_spyware_firewall = { plugin_version = "1.0beta" # 2006-04-30: initial implementation - GMF # The name of the log format log.format.format_label = "Barracuda Spyware Firewall" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "mail_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "httpscan\\[[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" # Log fields log.fields = { # daemon = "" # pid = "" timestamp = "" source_ip.type = "host" destination_ip = "" mime_type = "" url.type = "url" bytes = "" result = "" type = "" events = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, '^httpscan\\\\[[0-9]+\\\\]: ([0-9]+) [0-9]+ ([0-9.]+) ([0-9.]+) ([^ ]+) [0-9.]+ ([^ ]+) ([0-9]+) [0-9a-f]+ ([^ ]+) ([^ ]+)$')) then ( set_collected_field('', 'date', normalize_date($1, 'seconds_since_jan1_1970')); set_collected_field('', 'time', normalize_time($1, 'seconds_since_jan1_1970')); set_collected_field('', 'source_ip', $2); set_collected_field('', 'destination_ip', $3); set_collected_field('', 'mime_type', $4); set_collected_field('', 'url', $5); set_collected_field('', 'bytes', $6); set_collected_field('', 'result', $7); set_collected_field('', 'type', $8); set_collected_field('', 'events', 1); accept_collected_entry('', false); ); ` # Database fields database.fields = { source_ip = "" location = "" destination_ip = "" mime_type = "" url = "" file_type = "" result = "" type = "" } # database.fields database.numerical_fields = { events = { default = true } bytes = { default = true type = "float" display_format_type = "bandwidth" } } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { } # report_groups } # create_profile_wizard_options } # barracuda_spyware_firewall