tcpdump_with_interface = { # The name of the log format log.format.format_label = "tcpdump Log Format (-tt, with interface)" log.miscellaneous.log_data_type = "network" 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] +[^ ]+ [^ ]+ > [^ ]+: " # 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 = "seconds_since_jan1_1970" log.format.time_format = "seconds_since_jan1_1970" # tcpdump log format logs packets statistics.miscellaneous.entry_name = "packets" # Log fields log.fields = { date_time = { label = "$lang_stats.field_labels.date_time" type = "date_time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date_time interface = { label = "$lang_stats.field_labels.interface" type = "flat" index = 0 subindex = 0 } # interface direction = { label = "$lang_stats.field_labels.direction" type = "flat" index = 0 subindex = 0 } # direction source_ip = { label = "$lang_stats.field_labels.source_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = true leading_divider = "false" } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol operation = { label = "$lang_stats.field_labels.operation" type = "flat" index = 0 subindex = 0 } # operation } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse standard lines date_time_interface = { label = "date_time_interface" comment = "" value = "collect_fields_using_regexp('^()([0-9]*)\\\\.[0-9][0-9][0-9][0-9][0-9][0-9] ([^ ]+) ', '*KEY*,date_time,interface')" } # date_time_interface # Parse source and destination information src_dest = { label = "date_time_interface" comment = "" value = "collect_fields_using_regexp('^()[0-9]*\\\\.[0-9]+ [^ ]* ([^ ]+)\\.([^ ]*) > ([^ ]+)\\.([^ ]*):', '*KEY*,source_ip,source_port,destination_ip,destination_port')" } # src_dest # Parse size size = { label = "size" comment = "" value = "collect_fields_using_regexp('() \\\\([0-9]+\\\\)$'), '*KEY*,size')" } # Parse icmp lines icmp = { label = "icmp" comment = "" value = "collect_fields_using_regexp('()(icmp): (.*)$', '*KEY*,protocol,operation')" } # icmp # Parse size lines size = { label = "size" comment = "" value = "collect_fields_using_regexp('()\\\\(([0-9]+)\\\\)', '*KEY*,size')" } # size # Accept this log entry accept = { label = "accept" comment = "" value = "accept_collected_entry_using_regexp('().* > ', false)" } # accept } # log.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 interface = { label = "$lang_stats.field_labels.interface" log_field = "interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # interface direction = { label = "$lang_stats.field_labels.direction" log_field = "direction" type = "string" suppress_top = 0 suppress_bottom = 2 } # direction source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" log_field = "source_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" log_field = "destination_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol operation = { label = "$lang_stats.field_labels.operation" log_field = "operation" type = "string" suppress_top = 0 suppress_bottom = 2 } # operation } # database.fields database.numerical_fields = { packets = { label = "$lang_stats.field_labels.packets" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # packets size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "float" display_format_type = "bandwidth" } # size } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'packets = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" day_of_week = true hour_of_day = true interface = true direction = true source_ip = true source_port = true destination_ip = true destination_port = true protocol = true operation = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true } # not_supported } # tcpdump_with_interface