<?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: UF+Indexer+nullQueue/Route = Zero in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38582#M7137</link>
    <description>&lt;P&gt;Thank you again! I'll change my input as you recomended.&lt;BR /&gt;
Have a nice day =]&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2013 16:23:21 GMT</pubDate>
    <dc:creator>badland</dc:creator>
    <dc:date>2013-08-20T16:23:21Z</dc:date>
    <item>
      <title>UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38575#M7130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need some help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;scheme: 3 Universal Forwarders -&amp;gt; collecting/forwarding -&amp;gt; Indexer&lt;/P&gt;

&lt;P&gt;uf:&lt;BR /&gt;
Changed every UF host (windows:applications and services logs) from &lt;NAME&gt; to &lt;FQDN&gt;.&lt;/FQDN&gt;&lt;/NAME&gt;&lt;/P&gt;

&lt;P&gt;indexer:&lt;/P&gt;

&lt;P&gt;I added a tcp listener in: Manager -&amp;gt; Forwarding and receiving -&amp;gt; Configure receiving&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = splunk.domain.local
        
[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]
disabled = 0
        
[WinEventLog:Application]
disabled = 1
        
[WinEventLog:ForwardedEvents]
disabled = 1
        
[WinEventLog:HardwareEvents]
disabled = 1
        
[WinEventLog:Internet Explorer]
disabled = 1
        
[WinEventLog:Security]
disabled = 1
        
[WinEventLog:Setup]
disabled = 1
        
[WinEventLog:System]
disabled = 1&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*.domain.local]
TZ = GMT+4
TRANSFORMS-set= setnull,setdbls,kix_exclude_dbls&lt;/CODE&gt;&lt;/PRE&gt;
    

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
    
[setdbls]
REGEX = (?msi)^EventType=(1|2)
DEST_KEY = _MetaData:Index
FORMAT = db_ls
    
[kix_exclude_dbls]
REGEX = (?msi)^EventCode=(1722|1332|53).+ComputerName=E[1-5]TS1
DEST_KEY = queue
FORMAT = nullQueue&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;If I comment [setnull] block, all works fine. But logs, which are not EventType=(1|2), will be collected in the default index. If I enable the [setnull] block, ALL logs will be removed. However, I want to put [setdbls] in the "db_ls" index and remove the others.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38575#M7130</guid>
      <dc:creator>badland</dc:creator>
      <dc:date>2013-08-19T08:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38576#M7131</link>
      <description>&lt;P&gt;Hi badland&lt;/P&gt;

&lt;P&gt;check your props with btool:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd btool props list 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;also keep in mind each change in props and/or transforms needs a reload. this can be done with this search command on the fly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| extract reload=T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here are some sources which are useful in this case:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Troubleshootingconfigurations"&gt;Troubleshooting configurations&lt;/A&gt; - in-depth examples using btool.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Wheretofindtheconfigurationfiles"&gt;Configuration file precedence&lt;/A&gt; - understanding Splunk layered configurations.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Attributeprecedencewithinafile"&gt;Attribute precedence within a single props.conf file&lt;/A&gt; - discussion on using priority and matching based on souce:: vs host:: vs sourcetype.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;hope this helps, cheers - MuS&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 12:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38576#M7131</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-08-19T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38577#M7132</link>
      <description>&lt;P&gt;There error here seems to be a mixup of configurations and concepts (nullQueueing and index-time transformation in general). Considering your props.conf settings;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your host, source or sourcetype]
TRANSFORMS-blah= setnull, setdbls, kix_exclude_dbls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will take each event of the host/source/sourcetype through the three transforms. &lt;/P&gt;

&lt;P&gt;First the destination &lt;EM&gt;queue&lt;/EM&gt; will be set to the nullQueue for all events and the &lt;EM&gt;index&lt;/EM&gt; will be &lt;CODE&gt;main&lt;/CODE&gt;, unless you have specified a different index in inputs.conf. &lt;/P&gt;

&lt;P&gt;Second, if the regex matches in &lt;CODE&gt;[setdbls]&lt;/CODE&gt; the destination &lt;EM&gt;index&lt;/EM&gt; will be set to &lt;CODE&gt;db_ls&lt;/CODE&gt;, but the destination &lt;EM&gt;queue&lt;/EM&gt; will still be nullQueue. Thus all events will be deleted.&lt;/P&gt;

&lt;P&gt;The third transform will not make a difference.&lt;/P&gt;

&lt;P&gt;If you comment out the first transform &lt;CODE&gt;[setnull]&lt;/CODE&gt;, no events will have the nullQueue set, and events will flow into the &lt;CODE&gt;db_ls&lt;/CODE&gt; index (when the REGEX matches).&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Solution:&lt;/P&gt;

&lt;P&gt;To achieve the desired results I would suggest that you set the following;&lt;/P&gt;

&lt;P&gt;inputs.conf (where the files are read / scripts are executed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor / script / WinEventLog:blah blah blah]
disabled = 0
index=db_ls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf (on the indexer)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host / source / sourcetype]
TRANSFORMS-blah_null = setnull, setdbls, kix_exclude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf (on the indexer)&lt;BR /&gt;
under &lt;CODE&gt;[setdbls]&lt;/CODE&gt; change to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DEST_KEY=queue
FORMAT=indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That way the correct index will be set from the start, and the transformations will only deal with the queues.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38577#M7132</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-20T08:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38578#M7133</link>
      <description>&lt;P&gt;Thank you, Kristian Kolb! Very informative answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Maybe it can be useful for someone:&lt;BR /&gt;
I changed my aim from wmi::applications/system to wmi::security. Let it be as an example. &lt;BR /&gt;
After Kristian's kick to the right way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I removed from "Manager -&amp;gt; Forwarding and receiving -&amp;gt; Configure receiving" all tcp receivers. Then I set only one in inputs.conf (indexer side).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf (indexer.conf)&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://10997]
disabled = 0&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As Damien Dallimore (thx too) said in &lt;A href="http://answers.splunk.com/answers/46383/inputs-not-routing-to-correct-index"&gt;that post&lt;/A&gt; even if you install a simple uf, you will be able to change the index on the forwarder side. This is only the one right way.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf (universal forwarder side)&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
index = db_ls&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now all logs stream to the right index::db_ls. Then I removed any old rules from props.conf and transforms.conf (both on indexer side). Set the new rules for incoming wmi::security traffic:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf (indexer side)&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
priority = 5
TRANSFORMS-wmisecr=setnull,setsecrdbls&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I described actions for these rules in transforms.conf :: set the nullQueue for all default queue for the index db_ls -&amp;gt; set the indexQueue only for REGEX pattern:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf (indexer side)&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setsecrdbls]
REGEX = (?msi)^EventCode=(528|538|529)
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now all logs're forwarded from universal forwarder (some node) to the Indexer, to the right index and right queue. In the queue I can filter unnecessary events and leave only important.&lt;/P&gt;

&lt;P&gt;Nevertheless, can you point me out to the article where I can read about queues?&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38578#M7133</guid>
      <dc:creator>badland</dc:creator>
      <dc:date>2013-08-20T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38579#M7134</link>
      <description>&lt;P&gt;Here is my full answer --&amp;gt; &lt;A href="http://splunk-base.splunk.com/answers/99512/ufindexernullqueueroute-zero/99727"&gt;Advanced solution&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38579#M7134</guid>
      <dc:creator>badland</dc:creator>
      <dc:date>2013-08-20T14:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38580#M7135</link>
      <description>&lt;P&gt;Short comment first: you should set your index=blahblah for each &lt;CODE&gt;[monitor]&lt;/CODE&gt; (or &lt;CODE&gt;[WinEventLog:xxx]&lt;/CODE&gt; or &lt;CODE&gt;[script:xxxx]&lt;/CODE&gt;) in inputs.conf. Having it under &lt;CODE&gt;[default]&lt;/CODE&gt; will work, but if you have more than one input, and want them in separate indexes, you'll want to do this. &lt;/P&gt;

&lt;P&gt;I recommend that you &lt;EM&gt;always&lt;/EM&gt; set &lt;CODE&gt;index&lt;/CODE&gt; and &lt;CODE&gt;sourcetype&lt;/CODE&gt; for each input separately.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38580#M7135</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-20T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38581#M7136</link>
      <description>&lt;P&gt;Here are a few links to information regarding queues;&lt;/P&gt;

&lt;P&gt;In practice you'll probably only use nullQueue and indexQueue in your configurations. Other queues like typingQueue and aggQueue will only reveal themselves when there is a problem, like with blocked queues.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://wiki.splunk.com/Community:HowIndexingWorks"&gt;http://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/7076/questions-about-splunk-queues"&gt;http://answers.splunk.com/answers/7076/questions-about-splunk-queues&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/83334/what-are-the-various-queues-in-splunk"&gt;http://answers.splunk.com/answers/83334/what-are-the-various-queues-in-splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38581#M7136</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-20T14:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38582#M7137</link>
      <description>&lt;P&gt;Thank you again! I'll change my input as you recomended.&lt;BR /&gt;
Have a nice day =]&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 16:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/38582#M7137</guid>
      <dc:creator>badland</dc:creator>
      <dc:date>2013-08-20T16:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/573990#M101501</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6332"&gt;@kristian_kolb&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/116371"&gt;@badland&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have a little different scenario but facing a similar issue. We are integrating the json logs via HEC into Splunk Heavy Forwarder.&lt;BR /&gt;I have tried the below configurations.I am applying the props for the source. In transforms, there are different regexes and I would want to route it to different indexes based on log files and route all the other files not required to a null queue. I would not be able to use FORMAT=indexqueue in transforms.conf as I cannot mention multiple indexes in inputs.conf .This is not working and I am not getting results as expected. Kindly help.&lt;/P&gt;&lt;P&gt;The configs are like below:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;PROPS.CONF --&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;[source::*model-app*]&lt;BR /&gt;TRANSFORMS-segment=setnull,security_logs,application_logs,provisioning_logs&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;TRANSFORMS.CONF --&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[setnull]&lt;BR /&gt;REGEX=class\"\:\"(.*?)\"&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;[security_logs]&lt;BR /&gt;REGEX=(class\"\:\"(/var/log/cron|/var/log/audit/audit.log|/var/log/messages|/var/log/secure)\")&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=model_sec&lt;BR /&gt;WRITE_META=true&lt;BR /&gt;LOOKAHEAD=40000&lt;/P&gt;&lt;P&gt;[application_logs]&lt;BR /&gt;REGEX=(class\"\:\"(/var/log/application.log|/var/log/local*?.log)\")&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=model_app&lt;BR /&gt;WRITE_META=true&lt;BR /&gt;LOOKAHEAD=40000&lt;/P&gt;&lt;P&gt;[provisioning_logs]&lt;BR /&gt;REGEX=class\"\:\"(/opt/provgw-error_msg.log|/opt/provgw-bulkrequest.log|/opt/provgw/provgw-spml_command.log.*?)\"&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=model_prov&lt;BR /&gt;WRITE_META=true&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 10:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/573990#M101501</guid>
      <dc:creator>bhargavi</dc:creator>
      <dc:date>2021-11-08T10:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: UF+Indexer+nullQueue/Route = Zero</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/574162#M101517</link>
      <description>&lt;P&gt;You seem to be doing the same mistake that the OP did, mixing nullQueueing with index-transformation in general.&lt;/P&gt;&lt;P&gt;While there might be more clever ways to solve this HEC-wise or not sending the unwanted stuff in the first place, this should work as a general principle:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set queue = nullQueue for all events&lt;/LI&gt;&lt;LI&gt;Set queue = indexQueue for those events you want to keep, i.e. regex matching file names for any file you want to keep (i.e. the ones in the regexes from the security, application or provisioning parts)&lt;/LI&gt;&lt;LI&gt;Set _MetaData:Index = xxx&amp;nbsp; (basically the existing stuff)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Props.conf ---&lt;/P&gt;&lt;P&gt;[blablah]&lt;/P&gt;&lt;P&gt;TRANSFORMS-dostuff =setnullq, keepsome, setindexsec, setindexapp, setindexprov&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf --- as before but with the addition:&lt;/P&gt;&lt;P&gt;[keepsome]&lt;/P&gt;&lt;P&gt;REGEX = insert your regex here&lt;/P&gt;&lt;P&gt;DEST_KEY = queue&lt;/P&gt;&lt;P&gt;FORMAT= indexQueue&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 10:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/UF-Indexer-nullQueue-Route-Zero/m-p/574162#M101517</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2021-11-09T10:47:25Z</dc:date>
    </item>
  </channel>
</rss>

