<?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 how to blacklist events from file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132198#M27200</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am working on props.conf and transforms.conf files to clean some data before indexing the data into splunk so i have some data like &lt;/P&gt;

&lt;H1&gt;Version:   1.0&lt;/H1&gt;

&lt;H1&gt;Fields:    date time cs-method cs-uri sc-status cs-username cs(User-Agent) s-sitename s-ip s-port time-taken cs(Cookie) sc-substatus cs-host cs-version&lt;/H1&gt;

&lt;H1&gt;Software:  WebLogic&lt;/H1&gt;

&lt;H1&gt;Start-Date:    2014-09-04  00:00:00&lt;/H1&gt;

&lt;P&gt;I want to exclude these lines while indexing data into Splunk. i know we can use blacklist and whitelist to exclude the files in inputs.conf file &lt;/P&gt;

&lt;P&gt;Can anyone help me out here.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2014 14:19:14 GMT</pubDate>
    <dc:creator>gajananh999</dc:creator>
    <dc:date>2014-09-19T14:19:14Z</dc:date>
    <item>
      <title>how to blacklist events from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132198#M27200</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am working on props.conf and transforms.conf files to clean some data before indexing the data into splunk so i have some data like &lt;/P&gt;

&lt;H1&gt;Version:   1.0&lt;/H1&gt;

&lt;H1&gt;Fields:    date time cs-method cs-uri sc-status cs-username cs(User-Agent) s-sitename s-ip s-port time-taken cs(Cookie) sc-substatus cs-host cs-version&lt;/H1&gt;

&lt;H1&gt;Software:  WebLogic&lt;/H1&gt;

&lt;H1&gt;Start-Date:    2014-09-04  00:00:00&lt;/H1&gt;

&lt;P&gt;I want to exclude these lines while indexing data into Splunk. i know we can use blacklist and whitelist to exclude the files in inputs.conf file &lt;/P&gt;

&lt;P&gt;Can anyone help me out here.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 14:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132198#M27200</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-09-19T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to blacklist events from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132199#M27201</link>
      <description>&lt;P&gt;Are you trying to ignore the preamble of a log file? If so, give &lt;CODE&gt;PREAMBLE_REGEX&lt;/CODE&gt; in props.conf a shot. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Extractfieldsfromfileheadersatindextime#Props.conf_attributes_for_structured_data"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Extractfieldsfromfileheadersatindextime#Props.conf_attributes_for_structured_data&lt;/A&gt; for documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 14:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132199#M27201</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-19T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to blacklist events from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132200#M27202</link>
      <description>&lt;P&gt;Another option is the nullQueue filtering, but has more cost at indextime to parse all the events.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 14:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132200#M27202</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-09-19T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to blacklist events from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132201#M27203</link>
      <description>&lt;P&gt;Hello Martin,&lt;/P&gt;

&lt;P&gt;will this work to remove lines from file which are starts with #?&lt;/P&gt;

&lt;P&gt;PREAMBLE_REGEX=^#&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Gajanan HIroji&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 15:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132201#M27203</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-09-19T15:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to blacklist events from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132202#M27204</link>
      <description>&lt;P&gt;Hello Yannk,&lt;/P&gt;

&lt;P&gt;nullQueue is not able to remove # lines from file here is the prop&lt;BR /&gt;
9/17/01 1:02:50.000 AM&lt;BR /&gt;&lt;BR /&gt;
Example:&lt;/P&gt;

&lt;H1&gt;Version:   1.0&lt;/H1&gt;

&lt;H1&gt;Fields:    date time cs-method cs-uri sc-status cs-username cs(User-Agent) s-sitename s-ip s-port time-taken cs(Cookie) sc-substatus cs-host cs-version&lt;/H1&gt;

&lt;H1&gt;Software:  WebLogic&lt;/H1&gt;

&lt;P&gt;It taking this whole thing as one event&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Gajanan Hiroji&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 16:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132202#M27204</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-09-19T16:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to blacklist events from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132203#M27205</link>
      <description>&lt;P&gt;That should do it.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 21:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-blacklist-events-from-file/m-p/132203#M27205</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-19T21:35:20Z</dc:date>
    </item>
  </channel>
</rss>

