# Zeek tab-separated logs. A column holds no tab, and an unset column is `-`.
# http.log.
BRO_HTTP %{NUMBER:ts}\t%{NOTSPACE:uid}\t%{IP:orig_h}\t%{INT:orig_p}\t%{IP:resp_h}\t%{INT:resp_p}\t%{INT:trans_depth}\t(?<method>[^\t]*)\t(?<domain>[^\t]*)\t(?<uri>[^\t]*)\t(?<referrer>[^\t]*)\t(?<user_agent>[^\t]*)\t(?:-|%{NUMBER:request_body_len})\t(?:-|%{NUMBER:response_body_len})\t(?<status_code>[^\t]*)\t(?<status_msg>[^\t]*)\t(?<info_code>[^\t]*)\t(?<info_msg>[^\t]*)\t(?<filename>[^\t]*)\t(?<bro_tags>[^\t]*)\t(?<username>[^\t]*)\t(?<password>[^\t]*)\t(?<proxied>[^\t]*)\t(?<orig_fuids>[^\t]*)\t(?<orig_mime_types>[^\t]*)\t(?<resp_fuids>[^\t]*)\t(?<resp_mime_types>[^\t]*)
# dns.log.
BRO_DNS %{NUMBER:ts}\t%{NOTSPACE:uid}\t%{IP:orig_h}\t%{INT:orig_p}\t%{IP:resp_h}\t%{INT:resp_p}\t%{WORD:proto}\t%{INT:trans_id}\t(?<query>[^\t]*)\t(?<qclass>[^\t]*)\t(?<qclass_name>[^\t]*)\t(?<qtype>[^\t]*)\t(?<qtype_name>[^\t]*)\t(?<rcode>[^\t]*)\t(?<rcode_name>[^\t]*)\t(?<AA>[^\t]*)\t(?<TC>[^\t]*)\t(?<RD>[^\t]*)\t(?<RA>[^\t]*)\t(?<Z>[^\t]*)\t(?<answers>[^\t]*)\t(?<TTLs>[^\t]*)\t(?<rejected>[^\t]*)
# conn.log.
BRO_CONN %{NUMBER:ts}\t%{NOTSPACE:uid}\t%{IP:orig_h}\t%{INT:orig_p}\t%{IP:resp_h}\t%{INT:resp_p}\t%{WORD:proto}\t(?<service>[^\t]*)\t(?:-|%{NUMBER:duration})\t(?:-|%{NUMBER:orig_bytes})\t(?:-|%{NUMBER:resp_bytes})\t(?<conn_state>[^\t]*)\t(?<local_orig>[^\t]*)\t(?<missed_bytes>[^\t]*)\t(?<history>[^\t]*)\t(?<orig_pkts>[^\t]*)\t(?<orig_ip_bytes>[^\t]*)\t(?<resp_pkts>[^\t]*)\t(?<resp_ip_bytes>[^\t]*)\t(?<tunnel_parents>[^\t]*)
# files.log, where tx_hosts, rx_hosts and conn_uids are comma-separated sets.
BRO_FILES %{NUMBER:ts}\t%{NOTSPACE:fuid}\t(?<tx_hosts>[^\t]*)\t(?<rx_hosts>[^\t]*)\t(?<conn_uids>[^\t]*)\t(?<source>[^\t]*)\t(?<depth>[^\t]*)\t(?<analyzers>[^\t]*)\t(?<mime_type>[^\t]*)\t(?<filename>[^\t]*)\t(?<duration>[^\t]*)\t(?<local_orig>[^\t]*)\t(?<is_orig>[^\t]*)\t(?<seen_bytes>[^\t]*)\t(?<total_bytes>[^\t]*)\t(?<missing_bytes>[^\t]*)\t(?<overflow_bytes>[^\t]*)\t(?<timedout>[^\t]*)\t(?<parent_fuid>[^\t]*)\t(?<md5>[^\t]*)\t(?<sha1>[^\t]*)\t(?<sha256>[^\t]*)\t(?<extracted>[^\t]*)