<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tip: Sample pfSense Logs Parsed Here in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267239#M51179</link>
    <description>&lt;P&gt;Hi @arizvi801 - Thank you so much for sharing your pfsense parsing. It would be great if you could put your code in an Answer below that can be accepted. That way other users will know this post is resolved and it can be easily found as a reference &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks!&lt;/P&gt;

&lt;P&gt;I've slighted edited your post to make it easier to read all the code. You can click the gear icon to the right of the title and click "Edit" where you can copy and paste all the code into an Answer below.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 18:24:20 GMT</pubDate>
    <dc:creator>aaraneta_splunk</dc:creator>
    <dc:date>2017-02-01T18:24:20Z</dc:date>
    <item>
      <title>Tip: Sample pfSense Logs Parsed Here</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267238#M51178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have parsed some pfSense logs.  For anyone making an app, please go ahead and use this info.&lt;/P&gt;

&lt;P&gt;Cheers and use in good health.&lt;/P&gt;

&lt;P&gt;pfsense_dhcp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+(.*|\s)\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;logtype&amp;gt;\w+(.*|\[\d+\]))\:\s(?P&amp;lt;dhcp_type&amp;gt;\w+)\s\w+\s(?P&amp;lt;request_address&amp;gt;\d+\.\d+\.\d+\.\d+)\s\w+\s(?P&amp;lt;request_mac&amp;gt;\w+\:\w+\:\w+\:\w+\:\w+\:\w+)\s|\((?P&amp;lt;network&amp;gt;(.*))\)\s\w+\s(?P&amp;lt;interface&amp;gt;\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pfsense_ipv4_icmp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+.*|\s\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;logtype&amp;gt;\w+)\:\s(?P&amp;lt;rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;sub_rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;anchor&amp;gt;.*|\w+)\,(?P&amp;lt;tracker&amp;gt;\d+)\,(?P&amp;lt;real_interface&amp;gt;\w+)\,(?P&amp;lt;reason&amp;gt;\w+)\,(?P&amp;lt;action&amp;gt;\w+)\,(?P&amp;lt;direction&amp;gt;\w+)\,(?P&amp;lt;ip_version&amp;gt;\d)\,(?P&amp;lt;tos&amp;gt;\d+x\d+)\,\,(?P&amp;lt;ttl&amp;gt;\d+)\,(?P&amp;lt;id&amp;gt;\d+)\,(?P&amp;lt;offset&amp;gt;\d+)\,(?P&amp;lt;flags&amp;gt;\w+)\,(?P&amp;lt;protocol_id&amp;gt;\d+)\,(?P&amp;lt;protocol_text&amp;gt;\w+)\,(?P&amp;lt;length&amp;gt;\d+)\,(?P&amp;lt;source_address&amp;gt;\d+\.\d+\.\d+\.\d+)\,(?P&amp;lt;destination_address&amp;gt;\d+\.\d+\.\d+\.\d+)\,(?P&amp;lt;icmp_type&amp;gt;\w+)\,(?P&amp;lt;icmp_id&amp;gt;\d+)\,(?P&amp;lt;icmp_sequence&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pfsense_ipv4_tcp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+.*|\s\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;logtype&amp;gt;\w+)\:\s(?P&amp;lt;rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;sub_rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;anchor&amp;gt;.*|\w+)\,(?P&amp;lt;tracker&amp;gt;\d+)\,(?P&amp;lt;real_interface&amp;gt;\w+)\,(?P&amp;lt;reason&amp;gt;\w+)\,(?P&amp;lt;action&amp;gt;\w+)\,(?P&amp;lt;direction&amp;gt;\w+)\,(?P&amp;lt;ip_version&amp;gt;\d)\,(?P&amp;lt;tos&amp;gt;\d+x\d+)\,\,(?P&amp;lt;ttl&amp;gt;\d+)\,(?P&amp;lt;id&amp;gt;\d+)\,(?P&amp;lt;offset&amp;gt;\d+)\,(?P&amp;lt;flags&amp;gt;\w+)\,(?P&amp;lt;protocol_id&amp;gt;\d+)\,(?P&amp;lt;protocol_text&amp;gt;\w+)\,(?P&amp;lt;length&amp;gt;\d+)\,(?P&amp;lt;source_address&amp;gt;\d+\.\d+\.\d+\.\d+)\,(?P&amp;lt;destination_address&amp;gt;\d+\.\d+\.\d+\.\d+)\,(?P&amp;lt;source_port&amp;gt;\d+)\,(?P&amp;lt;destination_port&amp;gt;\d+)\,(?P&amp;lt;data_length&amp;gt;\d+)\,(?P&amp;lt;tcp_flag&amp;gt;\w+)\,(?P&amp;lt;sequence_number&amp;gt;\d+)\,(?P&amp;lt;ack_number&amp;gt;.*|\d+)\,(?P&amp;lt;tcp_window&amp;gt;\d+)\,\,(?P&amp;lt;tcp_options&amp;gt;.*|\S+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pfsense_ipv4_udp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+.*|\s\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;logtype&amp;gt;\w+)\:\s(?P&amp;lt;rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;sub_rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;anchor&amp;gt;.*|\w+)\,(?P&amp;lt;tracker&amp;gt;\d+)\,(?P&amp;lt;real_interface&amp;gt;\w+)\,(?P&amp;lt;reason&amp;gt;\w+)\,(?P&amp;lt;action&amp;gt;\w+)\,(?P&amp;lt;direction&amp;gt;\w+)\,(?P&amp;lt;ip_version&amp;gt;\d)\,(?P&amp;lt;tos&amp;gt;\d+x\d+)\,\,(?P&amp;lt;ttl&amp;gt;\d+)\,(?P&amp;lt;id&amp;gt;\d+)\,(?P&amp;lt;offset&amp;gt;\d+)\,(?P&amp;lt;flags&amp;gt;\w+)\,(?P&amp;lt;protocol_id&amp;gt;\d+)\,(?P&amp;lt;protocol_text&amp;gt;\w+)\,(?P&amp;lt;length&amp;gt;\d+)\,(?P&amp;lt;source_address&amp;gt;\d+\.\d+\.\d+\.\d+)\,(?P&amp;lt;destination_address&amp;gt;\d+\.\d+\.\d+\.\d+)\,(?P&amp;lt;source_port&amp;gt;\d+)\,(?P&amp;lt;destination_port&amp;gt;\d+)\,(?P&amp;lt;data_length&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pfsense_ipv6_icmpv6&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+.*|\s\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;logtype&amp;gt;\w+)\:\s(?P&amp;lt;rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;sub_rule_number&amp;gt;.*|\d+)\,(?P&amp;lt;anchor&amp;gt;.*|\w+)\,(?P&amp;lt;tracker&amp;gt;\d+)\,(?P&amp;lt;real_interface&amp;gt;\w+)\,(?P&amp;lt;reason&amp;gt;\w+)\,(?P&amp;lt;action&amp;gt;\w+)\,(?P&amp;lt;direction&amp;gt;\w+)\,(?P&amp;lt;ip_version&amp;gt;\d)\,(?P&amp;lt;class&amp;gt;\d+x\d+)\,(?P&amp;lt;flow_label&amp;gt;\w+)\,(?P&amp;lt;hop_limit&amp;gt;\d+)\,(?P&amp;lt;protocol_text&amp;gt;\w+)\,(?P&amp;lt;protocol_id&amp;gt;\d+)\,(?P&amp;lt;length&amp;gt;\d+)\,(?P&amp;lt;source_address&amp;gt;(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))\,(?P&amp;lt;destination_address&amp;gt;(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))\,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pfsense_nginx&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+(.*|\s)\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;fqdn&amp;gt;\w+\.\w+\.\w+)\s(?P&amp;lt;logtype&amp;gt;\w+)\:\s(?P&amp;lt;remote_address&amp;gt;\d+\.\d+\.\d+\.\d+)\s\-\s\-\s\[\S+\s\-\d+\]\s\"(?P&amp;lt;request&amp;gt;.*)\"\s(?P&amp;lt;status&amp;gt;\d+)\s(?P&amp;lt;body_bytes_sent&amp;gt;\d+)\s\"(?P&amp;lt;http_referrer&amp;gt;\S+)\"\s\"(?P&amp;lt;http_user_agent&amp;gt;.*)\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pfsense_snort&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;host&amp;gt;\d+\.\d+\.\d+\.\d+)\s(?P&amp;lt;timestamp&amp;gt;\S+(.*|\s)\s\d+\s\d+\:\d+\:\d+)\s(?P&amp;lt;logtype&amp;gt;\w+)(.*)\:\s\[(?P&amp;lt;GID&amp;gt;\d+)\:(?P&amp;lt;SID&amp;gt;\d+)\:(?P&amp;lt;rev&amp;gt;\d+)\]\s(?P&amp;lt;description&amp;gt;.*)\s\[Classification:\s(?P&amp;lt;classification&amp;gt;.*)\]\s\[Priority:\s(?P&amp;lt;priority&amp;gt;\d+)\]\s\{(?P&amp;lt;protocol&amp;gt;\w+)\}\s(?P&amp;lt;source_address&amp;gt;\d+\.\d+\.\d+\.\d+)\:(?P&amp;lt;source_port&amp;gt;\d+)\s\-\&amp;gt;\s(?P&amp;lt;destination_address&amp;gt;\d+\.\d+\.\d+\.\d+)\:(?P&amp;lt;destination_port&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267238#M51178</guid>
      <dc:creator>arizvi801</dc:creator>
      <dc:date>2020-09-29T12:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tip: Sample pfSense Logs Parsed Here</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267239#M51179</link>
      <description>&lt;P&gt;Hi @arizvi801 - Thank you so much for sharing your pfsense parsing. It would be great if you could put your code in an Answer below that can be accepted. That way other users will know this post is resolved and it can be easily found as a reference &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks!&lt;/P&gt;

&lt;P&gt;I've slighted edited your post to make it easier to read all the code. You can click the gear icon to the right of the title and click "Edit" where you can copy and paste all the code into an Answer below.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 18:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267239#M51179</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-02-01T18:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tip: Sample pfSense Logs Parsed Here</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267240#M51180</link>
      <description>&lt;P&gt;Resolved in Question.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tip-Sample-pfSense-Logs-Parsed-Here/m-p/267240#M51180</guid>
      <dc:creator>arizviherjavec</dc:creator>
      <dc:date>2018-04-23T17:24:20Z</dc:date>
    </item>
  </channel>
</rss>

