# Copyright (c) 2012 Flowerfire, Inc. All Rights Reserved. net_flow_nfdump_o_long = { plugin_version = "1.0" info.1.manufacturer = "Cisco Systems" info.1.device = "NetFlow (nfdump -o long)" info.1.version.1 = "" # 2012-05-20 - 1.0 - GMF - Initial implementation # The name of the log format log.format.format_label = "Cisco NetFlow (nfdump -o long)" log.miscellaneous.log_data_type = "network_device" log.miscellaneous.log_format_type = "network_device" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^Date flow start *Duration *Proto *Src IP Addr:Port *Dst IP Addr:Port *Packets *Bytes *Flows" # The regular expression to parse lines log.format.parsing_regular_expression = "^([0-9-]+) ([0-9:]+)[.][0-9]+ +([0-9.]+) +([^ ]+) +([^ :]+):([0-9]+) +-> +([^ :]+):([0-9]+) +([0-9]+) +([0-9]+) +([0-9]+)" # Log fields log.fields = { date = "" time = "" duration = "" proto = "" src_ip_addr = "" src_port = "" dst_ip_addr = "" dst_port = "" packets = "" bytes = "" flows = "" events = "" } # log.fields # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" # duration = "" proto = "" src_ip_addr = "" src_port = "" dst_ip_addr = "" dst_port = "" # packets = "" # bytes = "" # flows = "" } # database.fields log.parsing_filters.parse = ` # Convert duration in SSS.mmm format to milliseconds (SSSmmm). if (matches_regular_expression(duration, '^([0-9]+)[.]([0-9][0-9][0-9])')) then duration = $1 . $2; ` # 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.numerical_fields = { events = { default = true entries_field = true } # events bytes = { default = true integer_bits = 64 display_format_type = "bandwidth" } # bytes duration = { default = true integer_bits = 64 display_format_type = "duration_milliseconds" } # duration packets = "" flows = "" } # database.numerical_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 } # net_flow_nfdump_o_long