iscdhcp = { # The name of the log format log.format.format_label = "ISC DHCP Log Format" log.miscellaneous.log_data_type = "syslog_required" 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 = "(BOOTREQUEST|DHCPDISCOVER) from [0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # An entry in this log is called an "event" in the statistics statistics.miscellaneous.entry_name = "events" # Log fields log.fields = { id = { label = "$lang_stats.field_labels.id" type = "flat" index = 0 subindex = 0 } # id priority = { label = "$lang_stats.field_labels.priority" type = "flat" index = 0 subindex = 0 } # priority operation = { label = "$lang_stats.field_labels.operation" type = "flat" index = 0 subindex = 0 } # operation mac_address = { label = "$lang_stats.field_labels.mac_address" type = "flat" index = 0 subindex = 0 } # mac_address client_gateway = { label = "$lang_stats.field_labels.client_gateway" type = "flat" index = 0 subindex = 0 } # client_gateway lease_ip = { label = "$lang_stats.field_labels.lease_ip" type = "flat" index = 0 subindex = 0 } # lease_ip } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse a DHCPREQUEST event 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()\\\\[ID ([0-9]+) ([^]]+)\\\\] (DHCPREQUEST) for ([0-9.]+) from ([0-9a-f:]+) via (.*)$', '*KEY*,id,priority,operation,lease_ip,mac_address,client_gateway')" } # 1 # Parse a "no free leases" line 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()\\\\[ID ([0-9]+) ([^]]+)\\\\] (no free leases on subnet .*)$', '*KEY*,id,priority,operation')" } # 2 # Parse a BOOTREQUEST event 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()\\\\[ID ([0-9]+) ([^]]+)\\\\] (BOOTREQUEST) from ([0-9a-f:]+) via ([0-9.]+) ', '*KEY*,id,priority,operation,mac_address,client_gateway')" } # 3 # Parse a DHCPDISCOVER event 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()\\\\[ID ([0-9]+) ([^]]+)\\\\] (DHCPDISCOVER) from ([0-9a-f:]+) via (.*)$', '*KEY*,id,priority,operation,mac_address,client_gateway')" } # 4 # Parse a DHCPOFFER or DHCPACK event 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('()\\\\[ID ([0-9]+) ([^]]+)\\\\] (DHCPOFFER|DHCPACK) on ([^ ]+) to ([0-9a-f:]+) via (.*)$', '*KEY*,id,priority,operation,lease_ip,mac_address,client_gateway')" } # 5 # Accept known lines 6 = { label = "6" comment = "" value = "accept_collected_entry_using_regexp('()(DHCPDISCOVER|DHCPOFFER|DHCPDISCOVER|BOOTREQUEST|DHCPACK|DHCPREQUEST)', false)" } # 6 } # log.parsing_filters # Database fields database.fields = { priority = { label = "$lang_stats.field_labels.priority" log_field = "priority" type = "string" suppress_top = 0 suppress_bottom = 2 } # priority operation = { label = "$lang_stats.field_labels.operation" log_field = "operation" type = "string" suppress_top = 0 suppress_bottom = 2 } # operation mac_address = { label = "$lang_stats.field_labels.mac_address" log_field = "mac_address" type = "string" suppress_top = 0 suppress_bottom = 2 } # mac_address client_gateway = { label = "$lang_stats.field_labels.client_gateway" log_field = "client_gateway" type = "string" suppress_top = 0 suppress_bottom = 2 } # client_gateway lease_ip = { label = "$lang_stats.field_labels.lease_ip" log_field = "lease_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # lease_ip } # database.fields database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields 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 create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" priority = true operation = true mac_address = true client_gateway = true lease_ip = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true individualhosts = true sessions = true pageviews = true bandwidth = true } # not_supported } # iscdhcp