# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. ethereal = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2010-11-02 - 1.0.1 - MSG - Edited info lines. info.1.manfacturer = "Ethereal" info.1.device = "Packet Analyzer" info.1.version.1 = "" info.2.manfacturer = "Wireshark" info.2.device = "Packet Analyzer" info.2.version.1 = "" # # # "s3" - This log format recognises logs that require "parsing filters" # If parse_only_with_filters is true, Sawmill uses the log_parsing_filters to parse the log # and other parsing options are ignored. # # ======================================================================== # # Wireshark (previously Ethereal) # # http://www.ethereal.com/ # # # # # ####################### # # # LOG FORMAT OPTIONS # # # ####################### # # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+lff # The name of this format # # Format log_file_format {value} log.format.format_label = "Wireshark (previously Ethereal)" # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+ldt # This log is the following type #Format: log_data_type {value} log.miscellaneous.log_data_type = "network" log.miscellaneous.log_format_type = "network_device" # Determine what types of data this log file will support. # Un-comment the type below to disable this in the database # # Format: $notsupported {value} # $notsupported daybyday # $notsupported hits # $notsupported bandwidth # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+tbaq # if there are square brackets around some fields (date/time) # you can specify to have this treated as one field # Format: treat_brackets_as_quotes {true|false} log.format.treat_brackets_as_quotes = "false" # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+ldf # The format of dates in this log # Format: log_date_format {value} log.format.date_format = "yyyy-mm-dd" # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+ltf # The format of times in this log # Format: log_time_format {value} log.format.time_format = "hh:mm:ss" # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+en # The name of an entry in this log # Format: entry_name {value} statistics.miscellaneous.entry_name = "frame" # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+lfare # We use this to recognise the format and "auto-detect". # Format: log_format_autodetect_regular_expression {value} log.format.autodetect_regular_expression = "[0-9]+ ([0-9]+-[0-9]+-[0-9]+) ([0-9]+:[0-9]+:[0-9]+)\\.[0-9]+ [^ ]+ +[^ ]+ +[A-Z]+ +[0-9]+ [<>] [0-9]+ [^=]+=" # http://www.sawmill.net/cgi-bin/sawmilldocs?ho+powf # This template is for those formats that require parsing filters # so is set to "true" as default # Format: parse_only_with_filters ( true | false ) log.format.parse_only_with_filters = "true" ########################### # # # # ########################### # # # # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time bytes = { label = "$lang_stats.field_labels.bytes" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # bytes protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol source = { label = "$lang_stats.field_labels.source" type = "flat" index = 0 subindex = 0 } # source destination = { label = "$lang_stats.field_labels.destination" type = "flat" index = 0 subindex = 0 } # destination source_address_domain = { label = "$lang_stats.field_labels.source_address_domain" type = "flat" index = 0 subindex = 0 } # source_address_domain source_address_ip = { label = "$lang_stats.field_labels.source_address_ip" type = "flat" index = 0 subindex = 0 } # source_address_ip destination_address_domain = { label = "$lang_stats.field_labels.destination_address_domain" type = "flat" index = 0 subindex = 0 } # destination_address_domain destination_address_ip = { label = "$lang_stats.field_labels.destination_address_ip" type = "flat" index = 0 subindex = 0 } # destination_address_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port interface = { label = "$lang_stats.field_labels.interface" type = "flat" index = 0 subindex = 0 } # interface } # log.fields ####################### # # # # ####################### # # # # # Log Parsing Filters log.parsing_filters = { # Parse out the date and time 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()[0-9]+ ([0-9]+-[0-9]+-[0-9]+) ([0-9]+:[0-9]+:[0-9]+)\\\\.[0-9]+ [^ ]+ +[^ ]+ +([^ ]+)', '*KEY*,date,time,protocol')" } # 1 # Parse out the bytes 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()Frame [0-9]+ \\\\(([0-9]+) bytes on wire, [0-9]+ bytes captured\\\\)', '*KEY*,bytes')" } # 2 # Parse out the int src and dst 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()([^,]+), Src: ([^,]+), Dst: ([^$]+)$', '*KEY*,interface,source,destination')" } # 3 # Parse out the address 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()[^,]+, Src Addr: ([^ ]+) \\\\(([^)]+)\\\\), Dst Addr: ([^ ]+) \\\\(([^)]+)\\\\)$', '*KEY*,source_address_domain,source_address_ip,destination_address_domain,destination_address_ip')" } # 4 # Parse out the port 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('()Transmission Control Protocol, Src Port: ([0-9]+) \\\\([^)]+\\\\), Dst Port: ([0-9]+) \\\\([0-9]+\\\\), ', '*KEY*,source_port,destination_port')" } # 5 # Accept a collected field on every line 6 = { label = "6" comment = "" value = "accept_collected_entry_using_regexp('()No. Time Source Destination Protocol Info', false)" } # 6 } # log.parsing_filters ############################### # # # # ############################### # # See http://www.sawmill.net/cgi-bin/sawmilldocs?ho+docs-hierarchies # for information about hierarchies. # # # 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 protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol source_address_domain = { label = "$lang_stats.field_labels.source_address_domain" log_field = "source_address_domain" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_address_domain source_address_ip = { label = "$lang_stats.field_labels.source_address_ip" log_field = "source_address_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_address_ip destination_address_domain = { label = "$lang_stats.field_labels.destination_address_domain" log_field = "destination_address_domain" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_address_domain destination_address_ip = { label = "$lang_stats.field_labels.destination_address_ip" log_field = "destination_address_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_address_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_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port source = { label = "$lang_stats.field_labels.source" log_field = "source" type = "string" suppress_top = 0 suppress_bottom = 2 } # source destination = { label = "$lang_stats.field_labels.destination" log_field = "destination" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination } # database.fields database.numerical_fields = { frame = { label = "$lang_stats.field_labels.frame" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # frame bytes = { label = "$lang_stats.field_labels.bytes" default = false requires_log_field = true log_field = "bytes" type = "float" display_format_type = "bandwidth" } # bytes } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'frame = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" interface = true protocol = true source_address_domain = true source_address_ip = true destination_address_domain = true destination_address_ip = true source_port = true destination_port = true source = true destination = true } # report_groups } # create_profile_wizard_options not_supported = { individualhosts = true sessions = true sessionpages = true pageviews = true visitors = true } # not_supported } # ethereal