# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. iptraf_tcpudpservices = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-02-22 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "GNU" info.1.device = "IPTraf TCP/UDP Services" info.1.version.1 = "" # IPTraf TCP/UDP Services log # The name of the log format log.format.format_label = "IPTraf TCP/UDP Services Log Format" log.miscellaneous.log_data_type = "network" 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 = "^[A-Z][a-z][a-z] [A-Z][a-z][a-z] *[0-9]+ [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]; [*]* TCP/UDP service monitor started" # The format of dates and times in this log log.format.date_format = "mmm dd hh:mm:ss yyyy" log.format.time_format = "mmm dd hh:mm:ss yyyy" log.format.global_date_regular_expression = "^[*]* TCP/UDP traffic log, generated [A-Z][a-z][a-z] ([A-Z][a-z][a-z] *[0-9]+ [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9])" # This regular expression is used to parse the log fields out of the log entry log.format.parsing_regular_expression = "^([^:]*): [0-9]* packets, ([0-9]*) bytes total, [^;]*; [0-9]* packets, ([0-9]*) bytes incoming, [^;]*; [0-9]* packets, ([0-9]*) bytes outgoing," # Log fields log.fields = { type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type total_bytes = { label = "$lang_stats.field_labels.total_bytes" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # total_bytes bytes_incoming = { label = "$lang_stats.field_labels.bytes_incoming" type = "flat" index = 0 subindex = 0 } # bytes_incoming bytes_outgoing = { label = "$lang_stats.field_labels.bytes_outgoing" type = "flat" index = 0 subindex = 0 } # bytes_outgoing } # log.fields # 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 type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type } # database.fields database.numerical_fields = { hits = { label = "$lang_stats.field_labels.hits" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # hits total_bytes = { label = "$lang_stats.field_labels.total_bytes" default = false requires_log_field = true log_field = "total_bytes" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # total_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 = 'hits = 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 = "" type = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # iptraf_tcpudpservices