<?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 Help with Parsing props.conf and transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217306#M96208</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I cannot figure what I am doing wrong. &lt;BR /&gt;
I am using pfsense and I am receiving the logs into splunk but the logs are not being formatted.&lt;/P&gt;

&lt;P&gt;This is the event which I am receiving in splunk&lt;/P&gt;

&lt;P&gt;Nov 10 20:12:12 FWPFS001.localdomain Nov 11 15:12:12 filterlog: 84,16777216,,1000003811,igb0,match,pass,out,4,0x0,,127,2445,0,none,17,udp,1378,192.168.0.100,216.58.199.46,28180,443,1358&lt;/P&gt;

&lt;P&gt;As you can see it is not being tagged with what is configured in the props.conf and transforms.conf&lt;/P&gt;

&lt;P&gt;Here are my config files.&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
MUST_NOT_BREAK_AFTER = pf: .* rule ([-\d]+\/\d+)(.&lt;EM&gt;?):&lt;BR /&gt;
MUST_BREAK_AFTER = pf: .&lt;/EM&gt; (&amp;lt;|&amp;gt;) +(\d+.\d+.\d+.\d+).?(\d*):&lt;BR /&gt;
REPORT-pf2 = pf2&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;BR /&gt;
[pf2]&lt;/P&gt;

&lt;P&gt;REGEX= .* (?pass|block) .* (?TCP|UDP|IGMP|ICMP) .* (?(\d+.\d+.\d+.\d+)).?(?(\d*)) &lt;A href="https://community.splunk.com/?(d+.d+.d+.d+)" target="_blank"&gt;&amp;lt;|&amp;gt;&lt;/A&gt;.?(?(\d*)): (.*)&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:44:30 GMT</pubDate>
    <dc:creator>dsofoulis</dc:creator>
    <dc:date>2020-09-29T11:44:30Z</dc:date>
    <item>
      <title>Help with Parsing props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217306#M96208</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I cannot figure what I am doing wrong. &lt;BR /&gt;
I am using pfsense and I am receiving the logs into splunk but the logs are not being formatted.&lt;/P&gt;

&lt;P&gt;This is the event which I am receiving in splunk&lt;/P&gt;

&lt;P&gt;Nov 10 20:12:12 FWPFS001.localdomain Nov 11 15:12:12 filterlog: 84,16777216,,1000003811,igb0,match,pass,out,4,0x0,,127,2445,0,none,17,udp,1378,192.168.0.100,216.58.199.46,28180,443,1358&lt;/P&gt;

&lt;P&gt;As you can see it is not being tagged with what is configured in the props.conf and transforms.conf&lt;/P&gt;

&lt;P&gt;Here are my config files.&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TRUNCATE = 0&lt;BR /&gt;
MUST_NOT_BREAK_AFTER = pf: .* rule ([-\d]+\/\d+)(.&lt;EM&gt;?):&lt;BR /&gt;
MUST_BREAK_AFTER = pf: .&lt;/EM&gt; (&amp;lt;|&amp;gt;) +(\d+.\d+.\d+.\d+).?(\d*):&lt;BR /&gt;
REPORT-pf2 = pf2&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;BR /&gt;
[pf2]&lt;/P&gt;

&lt;P&gt;REGEX= .* (?pass|block) .* (?TCP|UDP|IGMP|ICMP) .* (?(\d+.\d+.\d+.\d+)).?(?(\d*)) &lt;A href="https://community.splunk.com/?(d+.d+.d+.d+)" target="_blank"&gt;&amp;lt;|&amp;gt;&lt;/A&gt;.?(?(\d*)): (.*)&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217306#M96208</guid>
      <dc:creator>dsofoulis</dc:creator>
      <dc:date>2020-09-29T11:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Parsing props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217307#M96209</link>
      <description>&lt;P&gt;It is unclear if the regular expression works, or if the markup formatting ate parts of what is visible. Regardless, your &lt;CODE&gt;transforms.conf&lt;/CODE&gt; stanza may not be complete.&lt;/P&gt;

&lt;P&gt;Let us assume that you want to create a report for three basic fields: &lt;CODE&gt;action&lt;/CODE&gt;, &lt;CODE&gt;protocol&lt;/CODE&gt; and &lt;CODE&gt;source ip&lt;/CODE&gt;. In this case we are making an assumption that the desired matches are as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Nov 10 20:12:12 FWPFS001.localdomain Nov 11 15:12:12 filterlog: 84, 16777216, , 1000003811, igb0, match, &lt;CODE&gt;pass&lt;/CODE&gt;,out,4,0x0,,127,2445,0,none,17, &lt;CODE&gt;udp&lt;/CODE&gt;,1378, &lt;CODE&gt;192.168.0.100&lt;/CODE&gt;, 216.58.199.46,28180,443,1358&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In this case, the corresponding props.conf entry will be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
...
REPORT-pf2 = pf2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And, the transforms.conf entry is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pf2]
REGEX = .+?(pass|block).+?(tcp|udp|igmp|icmp).+?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
FORMAT = action::$1 protocol::$2 src::$3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should do it. At this point, the data should be represented cleanly in user interface.&lt;/P&gt;

&lt;P&gt;I hope this helps you,&lt;/P&gt;

&lt;P&gt;-gc&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217307#M96209</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2016-11-11T16:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Parsing props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217308#M96210</link>
      <description>&lt;P&gt;If I want to create a report with action, protocol, source ip and destination ip. What should I add in the transforms.conf?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 06:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-Parsing-props-conf-and-transforms-conf/m-p/217308#M96210</guid>
      <dc:creator>jawadak</dc:creator>
      <dc:date>2018-05-31T06:38:34Z</dc:date>
    </item>
  </channel>
</rss>

