cscli parsers install crowdsecurity/palo-alto-threat-log
Parse Palo Alto Threat Log. More information in Palo Alto Documentation
1onsuccess: next_stage2name: crowdsecurity/palo-alto-threat-log3description: "Parse palo-alto-threat-log logs"4filter: "evt.Parsed.program == 'palo-alto-threat'"5pattern_syntax:6 PAN_TIMESTAMP: "%{YEAR}/%{MONTHNUM}/%{MONTHDAY} %{HOUR}:%{MINUTE}:%{INT}"7nodes:8 - grok:9 pattern: '(%{TIMESTAMP_ISO8601:syslog_timestamp} )?%{SYSLOGHOST:syslog_hostname} %{DATA:pan_reserved},%{DATA},%{WORD:serial_number},%{WORD:log_type},%{WORD:log_subtype},%{DATA:pan_unknown},%{PAN_TIMESTAMP:generation_timestamp},%{IP:src_ip},%{IP:dst_ip},%{IP:nat_src_ip},%{IP:nat_dst_ip},%{DATA:rule},%{DATA:src_user},%{DATA:dst_user},%{DATA:app},%{DATA:vsys},%{DATA:src_zone},%{DATA:dst_zone},%{DATA:ingress_int},%{DATA:egress_int},%{DATA:log_fwd_profile},%{DATA},%{DATA:session_id},%{DATA:repeat_count},%{DATA:src_port},%{DATA:dst_port},%{DATA:nat_src_port},%{DATA:nat_dst_port},%{DATA:pan_log_flags},%{DATA:ip_proto},%{DATA:action},("%{DATA:url_or_filename}")?,%{DATA:threat_id},%{DATA:url_category_or_wildfire_verdict},%{DATA:severity},%{DATA:direction},%{DATA:log_seq_num},%{DATA:fwd_to_panorama},%{DATA:src_country},%{DATA:dst_country},%{DATA:http_content_type},%{DATA:pcap_id},%{DATA:file_hash},%{DATA:wildfire_server},%{GREEDYDATA:unparsed_data}'10 apply_on: message11statics:12 - target: evt.StrTime13 expression: evt.Parsed.syslog_timestamp14 - meta: log_type15 value: palo_alto16 - meta: source_ip17 expression: evt.Parsed.src_ip18 - meta: severity19 expression: evt.Parsed.severity20 - meta: threat_id21 expression: evt.Parsed.threat_id22 - meta: destination_location23 expression: evt.Parsed.dst_country24 - meta: source_location25 expression: evt.Parsed.src_country26 - meta: rule_name27 expression: evt.Parsed.rule28 - meta: application29 expression: evt.Parsed.app30 - meta: threat_type31 expression: evt.Parsed.threat_id32