<?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: MultiLine Event- How to Ignore/Drop Specific Events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133906#M27520</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;transforms.conf (on INDEXER)

 [eliminate-debug]
REGEX=(?m)-\s*DEBUG\s*-
DEST_KEY=queue
FORMAT=nullQueue

props.conf (on INDEXER)
[sourcetype::mySourceType]
TRANSFORMS-trash = eliminate-debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart/reload the Indexer after change.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2015 21:59:22 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-02-09T21:59:22Z</dc:date>
    <item>
      <title>MultiLine Event- How to Ignore/Drop Specific Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133904#M27518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a multi line flat file where I want to ignore/drop specifc events. I'm using the Universial Forwarder, so as I understand it, the indexer needs to drop/ignore the event.  Below is my props.conf on the indexer. I want to drop/ignore any event that is not an ERROR.  I tried the  PREAMBLE_REGEX property setting a NOT regex and one explicitly looking for DEBUG. Neither are working.  &lt;/P&gt;

&lt;P&gt;Sample event to ignore:&lt;BR /&gt;
02/09/2015 11:37:54,807 - DEBUG - &lt;A href="https://Blah"&gt;https://Blah&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Alerts]
BREAK_ONLY_BEFORE_DATE = TRUE
SHOULD_LINEMERGE = TRUE
TIME_FORMAT=%m/%d/%Y %T
TRUNCATE = 0
MAX_DAYS_AGO = 2
PREAMBLE_REGEX =^((?!\d\d.\d\d.\d\d\d\d\s\d\d:\d\d:\d\d\,\d+\s\-\sERROR).)*
PREAMBLE_REGEX=^\d\d.\d\d.\d\d\d\d\s\d\d:\d\d:\d\d\,\d+\s\-\sDEBUG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions? &lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 18:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133904#M27518</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-02-09T18:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: MultiLine Event- How to Ignore/Drop Specific Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133905#M27519</link>
      <description>&lt;P&gt;Ok, found examples of using transforms.conf, but its still not working. Below is my transforms.conf. I want to drop DEBUG statements and INFOs and other stuff. Only keep ERRORS&lt;/P&gt;

&lt;P&gt;Sample Error:&lt;BR /&gt;
 02/09/2015 16:25:54,220 - ERROR - ECommerceBlah &lt;BR /&gt;
in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue


[setparsing]
REGEX = ERROR
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype::mySourceType]
TRANSFORMS-trash = setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 20:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133905#M27519</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-02-09T20:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: MultiLine Event- How to Ignore/Drop Specific Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133906#M27520</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;transforms.conf (on INDEXER)

 [eliminate-debug]
REGEX=(?m)-\s*DEBUG\s*-
DEST_KEY=queue
FORMAT=nullQueue

props.conf (on INDEXER)
[sourcetype::mySourceType]
TRANSFORMS-trash = eliminate-debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart/reload the Indexer after change.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 21:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133906#M27520</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-02-09T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: MultiLine Event- How to Ignore/Drop Specific Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133907#M27521</link>
      <description>&lt;P&gt;Ugh, this is baffling. Nothing is working. I placed splunkd in debug mod and didnt see anything in the errors. Is there a way to debug if the "transforms" are being hit?&lt;/P&gt;

&lt;P&gt;Tx&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133907#M27521</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-02-10T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: MultiLine Event- How to Ignore/Drop Specific Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133908#M27522</link>
      <description>&lt;P&gt;Output of ./splunk cmd btool transforms list  below. So it looks like the transforms are loading. Just cant figure out why they it is not working..&lt;/P&gt;

&lt;P&gt;[eliminate-debug]&lt;BR /&gt;
    CAN_OPTIMIZE = True&lt;BR /&gt;
    CLEAN_KEYS = True&lt;BR /&gt;
    DEFAULT_VALUE = &lt;BR /&gt;
    DEST_KEY = queue&lt;BR /&gt;
    FORMAT = nullQueue&lt;BR /&gt;
    KEEP_EMPTY_VALS = False&lt;BR /&gt;
    LOOKAHEAD = 4096&lt;BR /&gt;
    MV_ADD = False&lt;BR /&gt;
    REGEX = (?m)-\s*DEBUG\s*-&lt;BR /&gt;
    SOURCE_KEY = _raw&lt;BR /&gt;
    WRITE_META = False&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133908#M27522</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2020-09-28T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: MultiLine Event- How to Ignore/Drop Specific Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133909#M27523</link>
      <description>&lt;P&gt;Ah, so  [sourcetype::mySourceType] is not correct. I found I just needed [mySourceType] in the props.config, now its working.&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/MultiLine-Event-How-to-Ignore-Drop-Specific-Events/m-p/133909#M27523</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-02-12T15:25:36Z</dc:date>
    </item>
  </channel>
</rss>

