fortinet_syslog_required = { # The name of the log format log.format.format_label = "Fortinet Log Format (syslog required)" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "firewall" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "id=[^ ]* time=\"[0-9-]* [0-9:]*\" fw=[^ ]* " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Entries are called accesses statistics.miscellaneous.entry_name = "events" # Log fields log.fields = { id = { label = "$lang_stats.field_labels.id" type = "flat" index = 0 subindex = 0 } # id wttime = { label = "$lang_stats.field_labels.wttime" type = "flat" index = 0 subindex = 0 } # wttime fw = { label = "$lang_stats.field_labels.fw" type = "flat" index = 0 subindex = 0 } # fw pri = { label = "$lang_stats.field_labels.pri" type = "flat" index = 0 subindex = 0 } # pri log_id = { label = "$lang_stats.field_labels.log_id" type = "flat" index = 0 subindex = 0 } # log_id type = { label = "$lang_stats.field_labels.type" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "/" left_to_right = true leading_divider = "false" } # type subtype = { label = "$lang_stats.field_labels.subtype" type = "flat" index = 0 subindex = 0 } # subtype attack_id = { label = "$lang_stats.field_labels.attack_id" type = "flat" index = 0 subindex = 0 } # attack_id sn = { label = "$lang_stats.field_labels.sn" type = "flat" index = 0 subindex = 0 } # sn duration = { label = "$lang_stats.field_labels.duration" type = "flat" index = 0 subindex = 0 } # duration rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule policyid = { label = "$lang_stats.field_labels.policyid" type = "flat" index = 0 subindex = 0 } # policyid proto = { label = "$lang_stats.field_labels.proto" type = "flat" index = 0 subindex = 0 } # proto service = { label = "$lang_stats.field_labels.service" type = "flat" index = 0 subindex = 0 } # service status = { label = "$lang_stats.field_labels.status" type = "flat" index = 0 subindex = 0 } # status to = { label = "$lang_stats.field_labels.to" type = "flat" index = 0 subindex = 0 } # to from = { label = "$lang_stats.field_labels.from" type = "flat" index = 0 subindex = 0 } # from src = { label = "$lang_stats.field_labels.src" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # src srcname = { label = "$lang_stats.field_labels.srcname" type = "flat" index = 0 subindex = 0 } # srcname dst = { label = "$lang_stats.field_labels.dst" type = "flat" index = 0 subindex = 0 } # dst dstname = { label = "$lang_stats.field_labels.dstname" type = "flat" index = 0 subindex = 0 } # dstname src_int = { label = "$lang_stats.field_labels.src_int" type = "flat" index = 0 subindex = 0 } # src_int dst_int = { label = "$lang_stats.field_labels.dst_int" type = "flat" index = 0 subindex = 0 } # dst_int sent = { label = "$lang_stats.field_labels.sent" type = "flat" index = 0 subindex = 0 } # sent rcvd = { label = "$lang_stats.field_labels.rcvd" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # rcvd sent_pkt = { label = "$lang_stats.field_labels.sent_pkt" type = "flat" index = 0 subindex = 0 } # sent_pkt rcvd_pkt = { label = "$lang_stats.field_labels.rcvd_pkt" type = "flat" index = 0 subindex = 0 } # rcvd_pkt src_port = { label = "$lang_stats.field_labels.src_port" type = "flat" index = 0 subindex = 0 } # src_port dst_port = { label = "$lang_stats.field_labels.dst_port" type = "flat" index = 0 subindex = 0 } # dst_port vpn = { label = "$lang_stats.field_labels.vpn" type = "flat" index = 0 subindex = 0 } # vpn tran_ip = { label = "$lang_stats.field_labels.tran_ip" type = "flat" index = 0 subindex = 0 } # tran_ip tran_port = { label = "$lang_stats.field_labels.tran_port" type = "flat" index = 0 subindex = 0 } # tran_port msg = { label = "$lang_stats.field_labels.msg" type = "flat" index = 0 subindex = 0 } # msg virus_file = { label = "$lang_stats.field_labels.virus_file" type = "flat" index = 0 subindex = 0 } # virus_file virus_name_file = { label = "$lang_stats.field_labels.virus_name_file" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "/" left_to_right = true leading_divider = "false" } # virus_name_file ids_class = { label = "$lang_stats.field_labels.ids_class" type = "flat" index = 0 subindex = 0 } # ids_class ids_reference = { label = "$lang_stats.field_labels.ids_reference" type = "flat" index = 0 subindex = 0 } # ids_reference } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the space-separated, =-divided variables 1 = { label = "1" comment = "" value = "collect_listed_fields_using_regexp('()(id=.*)$', ' ', '=', 'time=wttime')" } # 1 # This handles virus information in the msg field 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()msg=\\\\\"The file (.*) is infected with ([^\"]+)\\\\.\\\\\"', '*KEY*,virus_file,virus_name_file')" } # 2 # This handles bandwidth information in the msg field 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()msg=Bytes transferred for connection: ([0-9]+) Src ([0-9]+) Dst', '*KEY*,rcvd,sent')" } # 3 # This handles ids class/ref information in the msg field 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()msg=\\\\\"(portscan: .*)\\\\\"', '*KEY*,ids_class')" } # 4 # This handles ids class/ref information in the msg field 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('()msg=\\\\\"([^:]+[^[]+)\\\\[Reference: ([^]]+)\\\\]\\\\\"', '*KEY*,ids_class,ids_reference')" } # 5 # Accept this entry 6 = { label = "6" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 6 } # log.parsing_filters # Database fields database.fields = { id = { label = "$lang_stats.field_labels.id" log_field = "id" type = "string" suppress_top = 0 suppress_bottom = 2 } # id time = { label = "$lang_stats.field_labels.time" log_field = "time" type = "string" suppress_top = 0 suppress_bottom = 2 } # time fw = { label = "$lang_stats.field_labels.fw" log_field = "fw" type = "string" suppress_top = 0 suppress_bottom = 2 } # fw pri = { label = "$lang_stats.field_labels.pri" log_field = "pri" type = "string" suppress_top = 0 suppress_bottom = 2 } # pri log_id = { label = "$lang_stats.field_labels.log_id" log_field = "log_id" type = "string" suppress_top = 0 suppress_bottom = 2 } # log_id type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type virus_name_file = { label = "$lang_stats.field_labels.virus_name_file" log_field = "virus_name_file" type = "string" suppress_top = 0 suppress_bottom = 2 } # virus_name_file ids_class = { label = "$lang_stats.field_labels.ids_class" log_field = "ids_class" type = "string" suppress_top = 0 suppress_bottom = 2 } # ids_class ids_reference = { label = "$lang_stats.field_labels.ids_reference" log_field = "ids_reference" type = "string" suppress_top = 0 suppress_bottom = 2 } # ids_reference msg = { label = "$lang_stats.field_labels.msg" log_field = "msg" type = "string" suppress_top = 0 suppress_bottom = 2 } # msg attack_id = { label = "$lang_stats.field_labels.attack_id" log_field = "attack_id" type = "string" suppress_top = 0 suppress_bottom = 2 } # attack_id sn = { label = "$lang_stats.field_labels.sn" log_field = "sn" type = "string" suppress_top = 0 suppress_bottom = 2 } # sn duration = { label = "$lang_stats.field_labels.duration" log_field = "duration" type = "string" suppress_top = 0 suppress_bottom = 2 } # duration rule = { label = "$lang_stats.field_labels.rule" log_field = "rule" type = "string" suppress_top = 0 suppress_bottom = 2 } # rule policyid = { label = "$lang_stats.field_labels.policyid" log_field = "policyid" type = "string" suppress_top = 0 suppress_bottom = 2 } # policyid proto = { label = "$lang_stats.field_labels.proto" log_field = "proto" type = "string" suppress_top = 0 suppress_bottom = 2 } # proto service = { label = "$lang_stats.field_labels.service" log_field = "service" type = "string" suppress_top = 1 suppress_bottom = 3 } # service status = { label = "$lang_stats.field_labels.status" log_field = "status" type = "string" suppress_top = 0 suppress_bottom = 2 } # status to = { label = "$lang_stats.field_labels.to" log_field = "to" type = "string" suppress_top = 0 suppress_bottom = 2 } # to from = { label = "$lang_stats.field_labels.from" log_field = "from" type = "string" suppress_top = 0 suppress_bottom = 2 } # from src = { label = "$lang_stats.field_labels.src" log_field = "src" type = "string" suppress_top = 0 suppress_bottom = 2 } # src srcname = { label = "$lang_stats.field_labels.srcname" log_field = "srcname" type = "string" suppress_top = 0 suppress_bottom = 2 } # srcname dst = { label = "$lang_stats.field_labels.dst" log_field = "dst" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst dstname = { label = "$lang_stats.field_labels.dstname" log_field = "dstname" type = "string" suppress_top = 0 suppress_bottom = 2 } # dstname src_int = { label = "$lang_stats.field_labels.src_int" log_field = "src_int" type = "string" suppress_top = 0 suppress_bottom = 2 } # src_int dst_int = { label = "$lang_stats.field_labels.dst_int" log_field = "dst_int" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst_int sent = { label = "$lang_stats.field_labels.sent" log_field = "sent" type = "string" suppress_top = 0 suppress_bottom = 2 } # sent rcvd = { label = "$lang_stats.field_labels.rcvd" log_field = "rcvd" type = "string" suppress_top = 0 suppress_bottom = 2 } # rcvd sent_pkt = { label = "$lang_stats.field_labels.sent_pkt" log_field = "sent_pkt" type = "string" suppress_top = 0 suppress_bottom = 2 } # sent_pkt rcvd_pkt = { label = "$lang_stats.field_labels.rcvd_pkt" log_field = "rcvd_pkt" type = "string" suppress_top = 0 suppress_bottom = 2 } # rcvd_pkt src_port = { label = "$lang_stats.field_labels.src_port" log_field = "src_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # src_port dst_port = { label = "$lang_stats.field_labels.dst_port" log_field = "dst_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst_port vpn = { label = "$lang_stats.field_labels.vpn" log_field = "vpn" type = "string" suppress_top = 0 suppress_bottom = 2 } # vpn tran_ip = { label = "$lang_stats.field_labels.tran_ip" log_field = "tran_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # tran_ip tran_port = { label = "$lang_stats.field_labels.tran_port" log_field = "tran_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # tran_port } # database.fields # Log Filters log.filters = { 1 = "virus_name_file = '' . virus_name_file . '/' . virus_file; '';" 1 = "type = '' . type . '/' . subtype; '';" 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.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = false requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events page_views = { label = "$lang_stats.field_labels.page_views" default = true requires_log_field = false type = "int" display_format_type = "integer" } # page_views visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "src" type = "unique" display_format_type = "integer" } # visitors rcvd = { label = "$lang_stats.field_labels.rcvd" default = false requires_log_field = true log_field = "rcvd" type = "float" display_format_type = "bandwidth" } # rcvd } # database.numerical_fields create_profile_wizard_options = { host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" id = true time = true fw = true pri = true log_id = true type = true virus_name_file = true ids_class = true ids_reference = true msg = true attack_id = true sn = true duration = true rule = true policyid = true proto = true service = true status = true to = true from = true src = true srcname = true dst = true dstname = true src_int = true dst_int = true sent = true rcvd = true sent_pkt = true rcvd_pkt = true src_port = true dst_port = true vpn = true tran_ip = true tran_port = true } # report_groups } # create_profile_wizard_options not_supported = { } # not_supported } # fortinet_syslog_required