# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. firewall1_via_syslog = { plugin_version = "1.1" info.1.manfacturer = "Checkpoint" info.1.device = "Firewall-1 via Syslog" info.1.version.1 = "" # 2010-07-02 - 1.0 - GMF - Initial plug-in creation # 2010-10-04 - 1.1 - MSG - Edited info lines. # The name of the log format log.format.format_label = "Firewall-1 via Syslog Log Format" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "firewall" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "logger: [0-9]+:[0-9]+:[0-9]+ [a-z]+ *[a-z]+ *[><][^ ]+" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { action = "" module = "" direction = "" interface = "" rule = "" rule_uid = "" src.type = "host" dst = "" proto = "" xlatesrc = "" nat_rulenum = "" nat_addtnl_rulenum = "" product = "" server = "" service = "" service_id = "" s_port = "" xlatesport = "" attack_info = "" attack = "" tcp_flags = "" icmp = "" icmp_type = "" icmp_code = "" sys_message = "" message_info = "" events = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` #e.g. 2010-01-04 17:56:28 local5.info 210.80.91.4 Jan 4 17:56:28 210.80.91.4 logger: 17:55:33 accept cpmodule >eth3 rule: 3; rule_uid: {ABCDEF01-BCDE-5678-ABCD-1234567890AB}; src: host.somewhere.com; dst: host.somewhere.else.com; proto: tcp; xlatesrc: source.somewhere.com NAT_rulenum: 2; NAT_addtnl_rulenum: 0; product: VPN-1 & FireWall-1; service: 21911; s_port: 3328; xlatesport: 10001; if (matches_regular_expression(v.syslog_message, 'logger: [ 0-9]+:[0-9]+:[0-9]+ ([a-z]+) +([a-z]+) +([><])([^ ]+) (.*)$')) then ( set_collected_field('', 'action', $1); set_collected_field('', 'module', $2); set_collected_field('', 'direction', $3); set_collected_field('', 'interface', $4); v.remainder = $5; collect_listed_fields('', v.remainder, '; ', ': ', ''); accept_collected_entry('', false); ); ` # parse # Database fields database.fields = { action = "" module = "" direction = "" interface = "" rule = "" rule_uid = "" src = "" dst = "" proto = "" xlatesrc = "" nat_rulenum = "" nat_addtnl_rulenum = "" product = "" server = "" s_port = "" xlatesport = "" } # 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 = { default = true 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 = "" } # report_groups } # create_profile_wizard_options } # firewall1_via:syslog