<?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: How to create a table for pfsense firewall logs using rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360091#M106479</link>
    <description>&lt;P&gt;The rex command just extracts fields from raw data, doesn't show in tabular format. You should be able to see the fields (if extraction is correct) on the field sidebar on the left. You'd need to specify a table command explicitly, with the fields that you want, to view a tabular output.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 16:38:26 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-04-25T16:38:26Z</dc:date>
    <item>
      <title>How to create a table for pfsense firewall logs using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360090#M106478</link>
      <description>&lt;P&gt;I was trying to create a table for pfsense firewall logs using rex command. But it is not creating a table, instead showing the raw logs.&lt;/P&gt;

&lt;P&gt;host="pfsense-firewall" "filterlog:"  | rex field=_raw "filterlog:\s[0-9]&lt;EM&gt;,[0-9]&lt;/EM&gt;,,[0-9]&lt;EM&gt;,(?[0-9A-Za-z]&lt;/EM&gt;),(?[A-Za-z]&lt;EM&gt;),(?[A-Za-z]&lt;/EM&gt;),(?[A-Za-z]&lt;EM&gt;),[0-9]&lt;/EM&gt;,[0-9A-Za-z\s]&lt;EM&gt;,[0-9]&lt;/EM&gt;,[0-9]&lt;EM&gt;,[0-9]&lt;/EM&gt;,[0-9]&lt;EM&gt;,[0-9A-Za-z]&lt;/EM&gt;,(?[0-9]&lt;EM&gt;),(?[A-Za-z0-9]&lt;/EM&gt;),[0-9]&lt;EM&gt;,(?[A-Za-z0-9.:]&lt;/EM&gt;),(?[A-Za-z0-9.:]&lt;EM&gt;),(?[0-9]&lt;/EM&gt;),(?[0-9]*)" &lt;/P&gt;

&lt;P&gt;Can anyone point the error in the above command?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360090#M106478</guid>
      <dc:creator>jawadak</dc:creator>
      <dc:date>2018-04-25T07:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table for pfsense firewall logs using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360091#M106479</link>
      <description>&lt;P&gt;The rex command just extracts fields from raw data, doesn't show in tabular format. You should be able to see the fields (if extraction is correct) on the field sidebar on the left. You'd need to specify a table command explicitly, with the fields that you want, to view a tabular output.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360091#M106479</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-25T16:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table for pfsense firewall logs using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360092#M106480</link>
      <description>&lt;P&gt;@jawadak, can you try by this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="pfsense-firewall" "filterlog:" | rex field=_raw "filterlog:\s[0-9],[0-9],,[0-9],(?&amp;lt;field1&amp;gt;[0-9A-Za-z]),(?&amp;lt;field2&amp;gt;[A-Za-z]),(?&amp;lt;field3&amp;gt;[A-Za-z]),(?&amp;lt;field4&amp;gt;[A-Za-z]),[0-9],[0-9A-Za-z\s],[0-9],[0-9],[0-9],[0-9],[0-9A-Za-z],(?[0-9]),(?&amp;lt;field5&amp;gt;[A-Za-z0-9]),[0-9],(?&amp;lt;field6&amp;gt;[A-Za-z0-9.\:]),(?&amp;lt;field7&amp;gt;[A-Za-z0-9.\:]),(?&amp;lt;field8&amp;gt;[0-9]),(?&amp;lt;field9&amp;gt;[0-9]*)"| table field*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that not work can you please share the exampleof one event to test.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 22:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360092#M106480</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-25T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table for pfsense firewall logs using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360093#M106481</link>
      <description>&lt;P&gt;Thanks, it worked&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 05:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-for-pfsense-firewall-logs-using-rex/m-p/360093#M106481</guid>
      <dc:creator>jawadak</dc:creator>
      <dc:date>2018-04-26T05:56:25Z</dc:date>
    </item>
  </channel>
</rss>

