# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. check_point_snmp = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2010-10-18 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Check Point" info.1.device = "SNMP" info.1.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. # # ======================================================================== # # # # # # ####################### # # # 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 = "Check Point SNMP Log Format" # 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 = "syslog_required" log.miscellaneous.log_format_type = "firewall" # 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 individualhosts # $notsupported hits # 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+en # The name of an entry in this log # Format: entry_name {value} statistics.miscellaneous.entry_name = "events" # 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 = "snmptrap product" # 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 = { community = { label = "$lang_stats.field_labels.community" type = "flat" index = 0 subindex = 0 } # community enterprise = { label = "$lang_stats.field_labels.enterprise" type = "flat" index = 0 subindex = 0 } # enterprise agent_ip = { label = "$lang_stats.field_labels.agent_ip" type = "flat" index = 0 subindex = 0 } # agent_ip version = { label = "$lang_stats.field_labels.version" type = "flat" index = 0 subindex = 0 } # version interface = { label = "$lang_stats.field_labels.interface" type = "flat" index = 0 subindex = 0 } # interface snmp_trap_product = { label = "SNMP trap product" type = "flat" index = 0 subindex = 0 } # snmp_trap_product source = { label = "$lang_stats.field_labels.source" type = "flat" index = 0 subindex = 0 } # source source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination = { label = "$lang_stats.field_labels.destination" type = "flat" index = 0 subindex = 0 } # destination protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule } # log.fields ####################### # # # # ####################### # # # # # Log Parsing Filters log.parsing_filters = { # Parse out the start of each line 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('() community=([^ ]+) enterprise=([0-9.]+) uptime=[0-9]+ agent_ip=([0-9.]+) generic_num=[[0-9]+ specific_num=[0-9]+ version=([^ ]+) var01_oid=[0-9.]+ var01_value=', '*KEY*,community,enterprise,agent_ip,version')" } # 1 # Parse out the parts we need of each line. If you want more pulled out of this line please contact formats@sawmill.co.uk. 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('() >([^ ]+) snmptrap product: ([^;]+); src: ([^;]+); s_port: ([^;]+); dst: ([^;]+); service:[^;]+; proto: ([^;]+); rule: ([^;]+);', '*KEY*,interface,snmp_trap_product,source,source_port,destination,protocol,rule')" } # 2 # Accept a collected field on every line 3 = { label = "3" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 3 } # log.parsing_filters ############################### # # # # ############################### # # See http://www.sawmill.net/cgi-bin/sawmilldocs?ho+docs-hierarchies # for information about hierarchies. # # # Database fields database.fields = { community = { label = "$lang_stats.field_labels.community" log_field = "community" type = "string" suppress_top = 0 suppress_bottom = 2 } # community enterprise = { label = "$lang_stats.field_labels.enterprise" log_field = "enterprise" type = "string" suppress_top = 0 suppress_bottom = 2 } # enterprise agent_ip = { label = "$lang_stats.field_labels.agent_ip" log_field = "agent_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # agent_ip version = { label = "$lang_stats.field_labels.version" log_field = "version" type = "string" suppress_top = 0 suppress_bottom = 2 } # version interface = { label = "$lang_stats.field_labels.interface" log_field = "interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # interface snmp_trap_product = { label = "SNMP trap product" log_field = "snmp_trap_product" type = "string" suppress_top = 0 suppress_bottom = 2 } # snmp_trap_product source = { label = "$lang_stats.field_labels.source" log_field = "source" type = "string" suppress_top = 0 suppress_bottom = 2 } # source source_port = { label = "$lang_stats.field_labels.source_port" log_field = "source_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_port destination = { label = "$lang_stats.field_labels.destination" log_field = "destination" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol rule = { label = "$lang_stats.field_labels.rule" log_field = "rule" type = "string" suppress_top = 0 suppress_bottom = 2 } # rule } # database.fields # # # # # "" # # 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 = { 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 create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" community = true enterprise = true agent_ip = true version = true interface = true snmp_trap_product = true source = true source_port = true destination = true protocol = true rule = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true sessionpages = true bandwidth = true pageviews = true visitors = true } # not_supported } # check_point_snmp