<?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: Discarding specific event and keeping the rest in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37113#M178613</link>
    <description>&lt;P&gt;Correction: props.conf&lt;BR /&gt;
[source::d:\TGNI\Logs*.log] &lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Correction to transforms.conf&lt;BR /&gt;
[setnull] &lt;BR /&gt;
REGEX = Category\:\sInfo&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;I cant still discard the info events. Where am i doing mistake?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 23:40:45 GMT</pubDate>
    <dc:creator>pdash</dc:creator>
    <dc:date>2013-02-19T23:40:45Z</dc:date>
    <item>
      <title>Discarding specific event and keeping the rest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37112#M178612</link>
      <description>&lt;P&gt;Below is the raw data that am getting. I want to extract the events where category is Error.&lt;BR /&gt;
For this am doing this in props.conf.&lt;/P&gt;

&lt;P&gt;[source::d:\TGNI\Logs*.log] &lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;And transform.conf:&lt;BR /&gt;
[setnull] &lt;BR /&gt;
REGEX = Category: Error&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Is this the right way to do?&lt;/P&gt;

&lt;P&gt;1   »  2/18/13&lt;BR /&gt;
6:48:54.000 PM&lt;BR /&gt;&lt;BR /&gt;
 Timestamp: 2/18/2013 6:48:54 PM&lt;BR /&gt;
 Category: Error&lt;BR /&gt;
 Machine: devmundia01&lt;BR /&gt;
 IP Address: &lt;BR /&gt;
 Customer ID: &lt;BR /&gt;
 Request URL: &lt;BR /&gt;
 Referrer URL: &lt;BR /&gt;
 Browser Name: &lt;BR /&gt;
 Browser Version: &lt;BR /&gt;
 User Agent: &lt;BR /&gt;
Show all 24 lines&lt;BR /&gt;
host=devmundia01   Options|  sourcetype=mundiaerr   Options|  source=d:\TGNI\Logs\tgni-mundia.2013-02-19.log   Options&lt;/P&gt;

&lt;P&gt;2   »  2/18/13&lt;BR /&gt;
6:48:53.000 PM&lt;BR /&gt;&lt;BR /&gt;
 Timestamp: 2/18/2013 6:48:53 PM&lt;BR /&gt;
 Category: Info&lt;BR /&gt;
 Machine: devmundia01&lt;BR /&gt;
 IP Address: 10.6.8.28 (3yu4xv0x5bbyk5345sqcbegq)&lt;BR /&gt;
 Customer ID: &lt;BR /&gt;
 Request URL: &lt;A href="http://10.13.65.105/"&gt;http://10.13.65.105/&lt;/A&gt;&lt;BR /&gt;
 Referrer URL: &lt;BR /&gt;
 Browser Name: Jakarta Commons-HttpClient&lt;BR /&gt;
 Browser Version: 0.0&lt;BR /&gt;
 User Agent: Jakarta Commons-HttpClient/3.0.1&lt;BR /&gt;
Show all 16 lines&lt;BR /&gt;
host=devmundia01   Options|  sourcetype=mundiaerr   Options|  source=d:\TGNI\Logs\tgni-mundia.2013-02-19.log   Options&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 23:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37112#M178612</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2013-02-19T23:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Discarding specific event and keeping the rest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37113#M178613</link>
      <description>&lt;P&gt;Correction: props.conf&lt;BR /&gt;
[source::d:\TGNI\Logs*.log] &lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Correction to transforms.conf&lt;BR /&gt;
[setnull] &lt;BR /&gt;
REGEX = Category\:\sInfo&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;I cant still discard the info events. Where am i doing mistake?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 23:40:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37113#M178613</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2013-02-19T23:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Discarding specific event and keeping the rest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37114#M178614</link>
      <description>&lt;P&gt;Splunk applies your transformation as part of the parsing process - before the raw data is written to the data store. Therefore, your transform will &lt;EM&gt;only&lt;/EM&gt; apply to &lt;STRONG&gt;new&lt;/STRONG&gt; data. Data that has already been indexed will not be removed.&lt;/P&gt;

&lt;P&gt;You will have to remove the data from the index and reindex it, if you want your changes to apply to existing data.&lt;/P&gt;

&lt;P&gt;Second, your &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; files must reside on the Splunk server(s) doing the parsing. Usually this means that the .conf files go on the indexer(s). However, if you are using a &lt;EM&gt;heavy&lt;/EM&gt; forwarder, it will be doing the parsing and so the .conf files will go there instead.&lt;/P&gt;

&lt;P&gt;Finally, it is possible that you need to update the regex to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?m)Category\:\sInfo
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2013 02:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discarding-specific-event-and-keeping-the-rest/m-p/37114#M178614</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-02-20T02:45:03Z</dc:date>
    </item>
  </channel>
</rss>

