<?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: Transform to nullQueue depends on search? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403969#M71752</link>
    <description>&lt;P&gt;The Splunk routing and filtering that you have is only applied to events of sourcetype &lt;CODE&gt;kubelet&lt;/CODE&gt;. If there are similar events coming from other sourcetypes, those will not be filtered and be shown when you just search with index=main.. Try to run this and see which sourcetypes are showing events which you wanted to filter.&lt;/P&gt;

&lt;P&gt;index=main "Unable to read" | stats count by sourcetype&lt;/P&gt;

&lt;P&gt;If you want to drop it from all sourcetypes, just set the same (you can still reference your existing transforms.conf stanza) for those sourcetypes.&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2018 21:13:28 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-05-18T21:13:28Z</dc:date>
    <item>
      <title>Transform to nullQueue depends on search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403968#M71751</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've been spending the last month experimenting with &lt;EM&gt;Splunk&lt;/EM&gt;. Lately, i've tried to reroute a specific event to the &lt;EM&gt;nullQueue&lt;/EM&gt;, with the intention of preventing it from being indexed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;May 18 12:52:43 lnx-iadevopsnode2 kubelet: E0518 12:52:43.207579    4688 file.go:76] Unable to read manifest path "/etc/kubernetes/manifests": path does not exist, ignoring
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using the following &lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[kubelet]
TRANSFORMS-manifest = setmanifestnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;CODE&gt;transforms.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setmanifestnull]
REGEX=(Unable to read)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The default index is &lt;EM&gt;main&lt;/EM&gt;. When i run a &lt;EM&gt;realtime&lt;/EM&gt; search: &lt;CODE&gt;index=main&lt;/CODE&gt;, the event still occurs. However, if i change the search to &lt;CODE&gt;index=main sourcetype=kubelet&lt;/CODE&gt;the event does not occur.&lt;/P&gt;

&lt;P&gt;Why could this be?&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 13:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403968#M71751</guid>
      <dc:creator>Burritobizon</dc:creator>
      <dc:date>2018-05-18T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transform to nullQueue depends on search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403969#M71752</link>
      <description>&lt;P&gt;The Splunk routing and filtering that you have is only applied to events of sourcetype &lt;CODE&gt;kubelet&lt;/CODE&gt;. If there are similar events coming from other sourcetypes, those will not be filtered and be shown when you just search with index=main.. Try to run this and see which sourcetypes are showing events which you wanted to filter.&lt;/P&gt;

&lt;P&gt;index=main "Unable to read" | stats count by sourcetype&lt;/P&gt;

&lt;P&gt;If you want to drop it from all sourcetypes, just set the same (you can still reference your existing transforms.conf stanza) for those sourcetypes.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 21:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403969#M71752</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-18T21:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transform to nullQueue depends on search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403970#M71753</link>
      <description>&lt;P&gt;It is showing only one sourcetype: kubelet.&lt;/P&gt;

&lt;P&gt;I should mention that the sourcetype &lt;EM&gt;kubelet&lt;/EM&gt; is created by a field extraction.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/messages]
TRANSFORMS-messagetype = messagetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;transforms.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[messagetype]
DEST_KEY = MetaData:Sourcetype
REGEX = :\d\d .*? (.*?(?=:))
FORMAT = $1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2018 13:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403970#M71753</guid>
      <dc:creator>Burritobizon</dc:creator>
      <dc:date>2018-05-22T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transform to nullQueue depends on search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403971#M71754</link>
      <description>&lt;P&gt;A sourcetype that was set using a TRANSFORMS statement cannot be used for other index time configurations. Splunk will only apply index-time stanzas matching the original sourcetype, not the new sourcetype from the transforms.&lt;/P&gt;

&lt;P&gt;So to achive this, either put the nullqueue transform under the source stanza, or put it under the correct souretype stanza and perhaps make the regex a bit more specific, such that it still only matches kubelet events.&lt;/P&gt;

&lt;P&gt;Also: your sourcetype override is not defined correctly. It should be: &lt;CODE&gt;FORMAT = sourcetype::$1&lt;/CODE&gt;. That is why your search including &lt;CODE&gt;sourcetype = kubelet&lt;/CODE&gt; doesn't return results I guess.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-to-nullQueue-depends-on-search/m-p/403971#M71754</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-22T13:56:17Z</dc:date>
    </item>
  </channel>
</rss>

