<?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: Why is my nullQueue configuration not working at app level? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260668#M78206</link>
    <description>&lt;P&gt;Actually, I think what you're looking for is the SEDCMD&lt;BR /&gt;
The best example is &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Data/Anonymizedata#Replace_strings_with_regular_expression_match"&gt;here&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;nullQueue is to send and entire event (like a header that ends up being sliced into it's own event unlike all the others) to oblivion.&lt;/P&gt;

&lt;P&gt;in this case, you really want to replace a pattern, with nothing.&lt;BR /&gt;
this is done in the props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-dots = s/^\.{20}//g
SEDCMD-txt = s/Type:\s+Info//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that will replace  exactly twenty periods that appear at the beginning of a string, and the "Type: Info"&lt;/P&gt;

&lt;P&gt;it's not as slick but if I know exactly what I want to delete... there is no need for partial info in the regex. The rule of thumb is to never send Splunk running around looking for the end of the line when you can just say "stop here... you got it."&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 21:59:26 GMT</pubDate>
    <dc:creator>rsennett_splunk</dc:creator>
    <dc:date>2016-07-14T21:59:26Z</dc:date>
    <item>
      <title>Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260666#M78204</link>
      <description>&lt;P&gt;I would like to eliminate the unnecessary content in the events because I have a small license. I want to remove the text and 20 &lt;CODE&gt;.&lt;/CODE&gt; characters from each of the events. So I added two stanzas in transforms.conf: one for removing the &lt;CODE&gt;.&lt;/CODE&gt; dot, and one for removing &lt;CODE&gt;text&lt;/CODE&gt;. Even these small stanzas make a huge impact on my very frequently rolling logs. &lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nullifytext]
REGEX = ^\.{20}$
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[webserverIH]
TRANSFORMS-removedots= nullifytext
category = Application
description = webserver logs
pulldown_type = 1
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have edited those logs at the search app level &lt;CODE&gt;c:\Splunk\etc\apps\search\local&lt;/CODE&gt; and restarted Splunk. Now I have deleted the old logs and reindexed the new similar logs, but still I see the text (not shown here) and dots in the events.  &lt;/P&gt;

&lt;P&gt;UPDATE&lt;/P&gt;

&lt;P&gt;This is my custom log file looks like. We want to remove the dots only from the splunk perspective.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....................
IP: ipaddress
Date: [07/Mar/2004:16:05:49 -0800] 
Method: "GET /topicparent=Main.ConfigurationVariables HTTP/1.1"
Response: 401
Type: Info
....................
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to remove only the &lt;CODE&gt;.&lt;/CODE&gt; dot and &lt;CODE&gt;Type:info&lt;/CODE&gt; from the event, not the entire event which contain the &lt;CODE&gt;Type:info&lt;/CODE&gt;. I need Splunk not to index those dots and test for every event, and desired output should be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IP: ipaddress
Date: [07/Mar/2004:16:05:49 -0800] 
Method: "GET /topicparent=Main.ConfigurationVariables HTTP/1.1"
Response: 401
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2016 21:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260666#M78204</guid>
      <dc:creator>vkakani60</dc:creator>
      <dc:date>2016-07-14T21:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260667#M78205</link>
      <description>&lt;P&gt;If you trying to get rid of the entire event if it contains 20 dots, see if this (remember to restart)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [nullifytext]
 REGEX = (\.{20})
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Don't see anything to remove &lt;CODE&gt;text&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 21:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260667#M78205</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-14T21:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260668#M78206</link>
      <description>&lt;P&gt;Actually, I think what you're looking for is the SEDCMD&lt;BR /&gt;
The best example is &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Data/Anonymizedata#Replace_strings_with_regular_expression_match"&gt;here&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;nullQueue is to send and entire event (like a header that ends up being sliced into it's own event unlike all the others) to oblivion.&lt;/P&gt;

&lt;P&gt;in this case, you really want to replace a pattern, with nothing.&lt;BR /&gt;
this is done in the props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-dots = s/^\.{20}//g
SEDCMD-txt = s/Type:\s+Info//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that will replace  exactly twenty periods that appear at the beginning of a string, and the "Type: Info"&lt;/P&gt;

&lt;P&gt;it's not as slick but if I know exactly what I want to delete... there is no need for partial info in the regex. The rule of thumb is to never send Splunk running around looking for the end of the line when you can just say "stop here... you got it."&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 21:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260668#M78206</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2016-07-14T21:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260669#M78207</link>
      <description>&lt;P&gt;SEDCMD removes text.  You also don't need the capturing group. I think the problem is twofold. not needing to remove the event and the regex is perhaps wrong.  stay tuned! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 22:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260669#M78207</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2016-07-14T22:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260670#M78208</link>
      <description>&lt;P&gt;Please check my question updated. Apologies for confusion. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 22:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260670#M78208</guid>
      <dc:creator>vkakani60</dc:creator>
      <dc:date>2016-07-14T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260671#M78209</link>
      <description>&lt;P&gt;Please check my question updated. Apologies for the confusion. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 22:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260671#M78209</guid>
      <dc:creator>vkakani60</dc:creator>
      <dc:date>2016-07-14T22:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260672#M78210</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;SEDCMD&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-rd=s/(\.+)//g
SEDCMD-ti=s/(Type:.*)//g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2016 22:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260672#M78210</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-14T22:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260673#M78211</link>
      <description>&lt;P&gt;I don't get it.  Please confirm/correct this guess at a translation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1: Your  7-line example is to be considered a single event across multiple lines. 
2: These events are to be dropped completely.
3: These events can be identified by ANY of:
   a: A first line starting with 20 periods.
   b: A last line starting with 20 periods.
   c: A next-to-last line that has the text "Type: Info".
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jul 2016 21:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260673#M78211</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-15T21:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260674#M78212</link>
      <description>&lt;P&gt;I want to get rid of three line from my seven lines code.&lt;BR /&gt;
1: get rid of 20 dots first and last &lt;BR /&gt;
2: get rid of type:Info line&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 22:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260674#M78212</guid>
      <dc:creator>vkakani60</dc:creator>
      <dc:date>2016-07-15T22:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260675#M78213</link>
      <description>&lt;P&gt;You need to use &lt;CODE&gt;SEDCMD&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-Periods = s/^[\s\.]*[\r\n]*//g
SEDCMD-TypeInfo= s/^\s*Type:\s+Info\s*[\r\n]*//
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Put this on your Indexers, restart all splunk instances there and then ALL NEW DATA (old data will remain bloated) will be truncated.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 22:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260675#M78213</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-15T22:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260676#M78214</link>
      <description>&lt;P&gt;did this example (or woodcock's example with a fancier regex) not work?&lt;/P&gt;

&lt;P&gt;If they didn't work... what was the outcome?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 19:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260676#M78214</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2016-07-18T19:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260677#M78215</link>
      <description>&lt;P&gt;I have tried yours and it works as expected. &lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 22:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260677#M78215</guid>
      <dc:creator>vkakani60</dc:creator>
      <dc:date>2016-08-11T22:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my nullQueue configuration not working at app level?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260678#M78216</link>
      <description>&lt;P&gt;Great! Glad it worked for you.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 00:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-nullQueue-configuration-not-working-at-app-level/m-p/260678#M78216</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2016-08-14T00:55:55Z</dc:date>
    </item>
  </channel>
</rss>

