<?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 to configure nullQueue to filter out repetitive lines from a log file before indexing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229067#M44561</link>
    <description>&lt;P&gt;Hi rturecek,&lt;/P&gt;

&lt;P&gt;This example discards the example line in your events by sending them to &lt;CODE&gt;nullQueue&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;In &lt;CODE&gt;props.conf&lt;/CODE&gt;, set the &lt;CODE&gt;TRANSFORMS-&lt;/CODE&gt; attribute:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/*/CheckPointReconciler.log*]
TRANSFORMS-001_CheckPointReconciler_NullQueue = CheckPointReconciler_NullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Create a corresponding stanza in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;. Set DEST_KEY to &lt;CODE&gt;queue&lt;/CODE&gt; and FORMAT to &lt;CODE&gt;nullQueue&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[CheckPointReconciler_NullQueue]
REGEX = [\d-\s:\.]+INFO\s+[^\s]+\snone\s+main\s+Reading\scheckpoint\sdirectory
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also set the sourcetype instead of the source in &lt;CODE&gt;props.conf&lt;/CODE&gt;. Do this either on a heavyweight forwarder or the indexer and remember to restart Splunk afterwards. &lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2016 21:16:35 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-01-11T21:16:35Z</dc:date>
    <item>
      <title>How to configure nullQueue to filter out repetitive lines from a log file before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229066#M44560</link>
      <description>&lt;P&gt;Splunk 6.1 Linux indexers feeding server with master license.&lt;/P&gt;

&lt;P&gt;I am trying to filter out repetitive lines from a log file before they are indexed. Need to configure the 3 conf files: inputs, props and transform.&lt;/P&gt;

&lt;P&gt;The server where the log file is located(different from indexer server where conf files are located):   mmd5&lt;BR /&gt;
mmd5 path/log:  &lt;CODE&gt;/var/log/*/CheckPointReconciler.log*&lt;/CODE&gt;&lt;BR /&gt;
Log line I want to filter out to nullQueue ( filter on 'Reading')&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 2015-12-30 2:02:12.736  14181:4 INFO    job_id none     main    Reading checkpoint directory /mm/feeder/chkpt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2016 19:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229066#M44560</guid>
      <dc:creator>rturecek</dc:creator>
      <dc:date>2016-01-11T19:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nullQueue to filter out repetitive lines from a log file before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229067#M44561</link>
      <description>&lt;P&gt;Hi rturecek,&lt;/P&gt;

&lt;P&gt;This example discards the example line in your events by sending them to &lt;CODE&gt;nullQueue&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;In &lt;CODE&gt;props.conf&lt;/CODE&gt;, set the &lt;CODE&gt;TRANSFORMS-&lt;/CODE&gt; attribute:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/*/CheckPointReconciler.log*]
TRANSFORMS-001_CheckPointReconciler_NullQueue = CheckPointReconciler_NullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Create a corresponding stanza in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;. Set DEST_KEY to &lt;CODE&gt;queue&lt;/CODE&gt; and FORMAT to &lt;CODE&gt;nullQueue&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[CheckPointReconciler_NullQueue]
REGEX = [\d-\s:\.]+INFO\s+[^\s]+\snone\s+main\s+Reading\scheckpoint\sdirectory
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also set the sourcetype instead of the source in &lt;CODE&gt;props.conf&lt;/CODE&gt;. Do this either on a heavyweight forwarder or the indexer and remember to restart Splunk afterwards. &lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 21:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229067#M44561</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-01-11T21:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure nullQueue to filter out repetitive lines from a log file before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229068#M44562</link>
      <description>&lt;P&gt;Thank you, The * in the path had to defined a little more precisely but now works.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 20:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-nullQueue-to-filter-out-repetitive-lines-from-a/m-p/229068#M44562</guid>
      <dc:creator>rturecek</dc:creator>
      <dc:date>2016-01-15T20:18:18Z</dc:date>
    </item>
  </channel>
</rss>

