<?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 can I eliminate logs before indexing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411539#M72862</link>
    <description>&lt;P&gt;It appears you're trying to match a field, not a regex in the raw event.&lt;/P&gt;

&lt;P&gt;The raw events has:&lt;BR /&gt;
message_info:"Address spoofing"; &lt;/P&gt;

&lt;P&gt;I believe your regex should be:&lt;/P&gt;

&lt;P&gt;[setnullCheckpoint]&lt;BR /&gt;
REGEX= message_info:\"Address spoofing\" &lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 19:58:43 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2018-05-17T19:58:43Z</dc:date>
    <item>
      <title>How can I eliminate logs before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411536#M72859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Someone can help me in filtering logs from Checkpoint before they are indexing?&lt;/P&gt;

&lt;P&gt;I tried following that link: &lt;A href="https://answers.splunk.com/answers/378972/how-to-filter-out-certain-events-from-checkpoint-d.html"&gt;https://answers.splunk.com/answers/378972/how-to-filter-out-certain-events-from-checkpoint-d.html&lt;/A&gt; &lt;BR /&gt;
but I think my REGEX doesn't work.&lt;/P&gt;

&lt;P&gt;I need to ignore all events that the "message_info" field is equal to "Address spoofing", here is my props.conf and transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf:
[checkpoint:syslog]
TRANSFORMS-null= setnullCheckpoint

transforms.conf:
[setnullCheckpoint]
REGEX = message_info=Address spoofing
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 18:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411536#M72859</guid>
      <dc:creator>monteirolopes</dc:creator>
      <dc:date>2018-05-17T18:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I eliminate logs before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411537#M72860</link>
      <description>&lt;P&gt;Assuming you are deploying the props.conf and transforms.conf to the indexers receiving the events. &lt;/P&gt;

&lt;P&gt;I recommend removing the space between the attribute and values in your transforms.conf:&lt;/P&gt;

&lt;P&gt;[setnullCheckpoint]&lt;BR /&gt;
REGEX= message_info=Address spoofing&lt;BR /&gt;
DEST_KEY= queue&lt;BR /&gt;
FORMAT= nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411537#M72860</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2020-09-29T19:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I eliminate logs before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411538#M72861</link>
      <description>&lt;P&gt;Hi Solarboyz&lt;/P&gt;

&lt;P&gt;I deployed props.conf and transforms.conf (folder "C:\Program Files\Splunk\etc\system\local\") on the indexer with your recommendation, but the events still indexing...&lt;BR /&gt;
props.conf:&lt;BR /&gt;
[checkpoint:syslog]&lt;BR /&gt;
TRANSFORMS-null=setnullCheckpoint&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnullCheckpoint]&lt;BR /&gt;
REGEX=message_info=Address spoofing&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;Follow example of the event that I want to ignore, you can see the "message_info" near in the end of event:&lt;/P&gt;

&lt;P&gt;May 17 16:24:14 192.168.63.61 1 2018-05-17 16:24:12 ngse CheckPoint 16009 - [action:"Detect"; flags:"393216"; ifdir:"inbound"; ifname:"eth5"; loguid:"{0x0,0x0,0x0,0x0}"; origin:"x.x.x.x"; originsicname:"CN=test,O=srv-test..pn95kt"; sequencenum:"6"; time:"1526585052"; version:"5"; __policy_id_tag:"product=VPN-1 &amp;amp; FireWall-1[db_tag={375400D5-214D-9B4A-A0D3-A1947AFD59A0};mgmt=test;date=1526490675;policy_name=name]"; dst:"x.x.x.x"; message_info:"Address spoofing"; product:"VPN-1 &amp;amp; FireWall-1"; proto:"6"; s_port:"80"; service:"49153"; src:"x.x.x.x"; ]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411538#M72861</guid>
      <dc:creator>monteirolopes</dc:creator>
      <dc:date>2020-09-29T19:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I eliminate logs before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411539#M72862</link>
      <description>&lt;P&gt;It appears you're trying to match a field, not a regex in the raw event.&lt;/P&gt;

&lt;P&gt;The raw events has:&lt;BR /&gt;
message_info:"Address spoofing"; &lt;/P&gt;

&lt;P&gt;I believe your regex should be:&lt;/P&gt;

&lt;P&gt;[setnullCheckpoint]&lt;BR /&gt;
REGEX= message_info:\"Address spoofing\" &lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411539#M72862</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-17T19:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I eliminate logs before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411540#M72863</link>
      <description>&lt;P&gt;I solved the problem.&lt;/P&gt;

&lt;P&gt;The problem was on the REGEX, I changed to REGEX=message_info:"Address spoofing" and no more events with that message was showed&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-eliminate-logs-before-indexing/m-p/411540#M72863</guid>
      <dc:creator>monteirolopes</dc:creator>
      <dc:date>2018-05-17T19:59:59Z</dc:date>
    </item>
  </channel>
</rss>

