<?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: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298952#M56542</link>
    <description>&lt;P&gt;Regarding the first question, it seems from the documentation that once you turn on selective indexing it won't index any external index (except where you have specified it in the inputs.conf stanza when you add &lt;STRONG&gt;_INDEX_AND_FORWARD_ROUTING=local&lt;/STRONG&gt;, and this seems to imply that this would not affect internal indexes. As to forwarding in that case I don't think that is clear. I do see that if you turn off selective indexing, the default behavior for Splunk Enterprise is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
   forwardedindex.0.whitelist = .*
   forwardedindex.1.blacklist = _.*
   forwardedindex.2.whitelist = (_audit|_internal)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As is defined in /opt/splunk/etc/system/local/default/outputs.conf&lt;/P&gt;

&lt;P&gt;On my third question, what I was really getting at is would the events I don't want get dropped before forwarding. In other words, does it forward, then filter (via transforms.conf), then index, or does it do the transforms and then index and/or forward.&lt;/P&gt;

&lt;P&gt;After reading your answer, I went and re-read the documentation and I believe that your statement is correct, and the indexer these are forwarded to will just pop what comes in into the indexes the log entries are parsed with.&lt;/P&gt;

&lt;P&gt;As for forwarding to new and old server, that's a big deal because I've got 150 forwarders out there with hard-coded IP address of the indexer (the old one) in the default outputs.conf, and I can't change that or override it using Deployment Monitor. This is just interim anyway, because when we are ready to switch over to the new system we are going to do these things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Bring splunk down on both&lt;/LI&gt;
&lt;LI&gt;rename the old system to its name -legacy&lt;/LI&gt;
&lt;LI&gt;take the old name of the old system and make it a CNAME to the new system's name&lt;/LI&gt;
&lt;LI&gt;swap the IP addresses of both systems, in the system and in DNS&lt;/LI&gt;
&lt;LI&gt;start splunk up again on both.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;We'll drop the TTL on these  ahead of time.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:33:32 GMT</pubDate>
    <dc:creator>wrangler2x</dc:creator>
    <dc:date>2020-09-29T13:33:32Z</dc:date>
    <item>
      <title>In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298950#M56540</link>
      <description>&lt;P&gt;I'm reading the section &lt;EM&gt;Index one input locally and then forward all inputs&lt;/EM&gt; in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad" target="_blank"&gt;Route and Filter data&lt;/A&gt; where &lt;STRONG&gt;selectiveIndexing=true&lt;/STRONG&gt; and &lt;STRONG&gt;index=true&lt;/STRONG&gt;. I have a couple of questions about that, but first here is my understanding.&lt;/P&gt;

&lt;P&gt;Nothing gets indexed or forwarded unless you explicitly state it for each input on the system, correct? As I understand the documentation, for every input stanza in any inputs.conf file you add &lt;STRONG&gt;_INDEX_AND_FORWARD_ROUTING=local&lt;/STRONG&gt; to enable indexing, and &lt;STRONG&gt;_TCP_ROUTING=&lt;/STRONG&gt;&lt;EM&gt;myDefinedIndexer&lt;/EM&gt; if you want that index to be forwarded to another indexer, and both if you want both.&lt;/P&gt;

&lt;P&gt;Now the &lt;STRONG&gt;main question&lt;/STRONG&gt; is -- does this apply to Splunk's internal inputs/indexes, or do I only have to worry about the inputs that I've created since I installed Splunk?&lt;/P&gt;

&lt;P&gt;A &lt;STRONG&gt;second question&lt;/STRONG&gt; I have is this: when the logs for any given input are forwarded, does the forwarded information allow the receiving indexer to know what index they should be put in, assuming both indexers have the same indexes?&lt;/P&gt;

&lt;P&gt;And my &lt;STRONG&gt;final question&lt;/STRONG&gt;: if the first indexer has filters (transforms) to drop some logs, and index others, does this behavior apply to forwarded logs? (I hope the answer to this is yes!).&lt;/P&gt;

&lt;P&gt;For anybody wondering what I'm doing, I'm migrating to a new system and so I'm wanting to send logs from the old one for a few weeks before I switch to the new one for all my forwarders and syslog senders.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:26:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298950#M56540</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2020-09-29T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298951#M56541</link>
      <description>&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Does this apply to Splunk's internal inputs/indexes&lt;BR /&gt;
=&amp;gt; Yes, but I'm not sure if _audit index works. I'm not sure if _audit will be indexed or forwarded, or not indexed at all.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Does the forwarded information allow the receiving indexer to know what index they should be put in?&lt;BR /&gt;
=&amp;gt; Yes, it is because processed event data contains a meta data where index should be used.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;And my final question: if the first indexer has filters (transforms) to drop some logs, and index others, does this behavior apply to forwarded logs? &lt;BR /&gt;
=&amp;gt; No because old indexer already "parsed" events, and a new indexer(2nd indexer) will not re-parse "parsed data"&lt;BR /&gt;
=&amp;gt; forwarder(probably UF)-&amp;gt; old indexer(filter is working)-&amp;gt;new indexer(this will not re-filter, which was already processed in the old indexer)&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Why not cloning from the forwarder to both old and new indexer? &lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 18:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298951#M56541</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2017-04-03T18:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298952#M56542</link>
      <description>&lt;P&gt;Regarding the first question, it seems from the documentation that once you turn on selective indexing it won't index any external index (except where you have specified it in the inputs.conf stanza when you add &lt;STRONG&gt;_INDEX_AND_FORWARD_ROUTING=local&lt;/STRONG&gt;, and this seems to imply that this would not affect internal indexes. As to forwarding in that case I don't think that is clear. I do see that if you turn off selective indexing, the default behavior for Splunk Enterprise is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
   forwardedindex.0.whitelist = .*
   forwardedindex.1.blacklist = _.*
   forwardedindex.2.whitelist = (_audit|_internal)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As is defined in /opt/splunk/etc/system/local/default/outputs.conf&lt;/P&gt;

&lt;P&gt;On my third question, what I was really getting at is would the events I don't want get dropped before forwarding. In other words, does it forward, then filter (via transforms.conf), then index, or does it do the transforms and then index and/or forward.&lt;/P&gt;

&lt;P&gt;After reading your answer, I went and re-read the documentation and I believe that your statement is correct, and the indexer these are forwarded to will just pop what comes in into the indexes the log entries are parsed with.&lt;/P&gt;

&lt;P&gt;As for forwarding to new and old server, that's a big deal because I've got 150 forwarders out there with hard-coded IP address of the indexer (the old one) in the default outputs.conf, and I can't change that or override it using Deployment Monitor. This is just interim anyway, because when we are ready to switch over to the new system we are going to do these things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Bring splunk down on both&lt;/LI&gt;
&lt;LI&gt;rename the old system to its name -legacy&lt;/LI&gt;
&lt;LI&gt;take the old name of the old system and make it a CNAME to the new system's name&lt;/LI&gt;
&lt;LI&gt;swap the IP addresses of both systems, in the system and in DNS&lt;/LI&gt;
&lt;LI&gt;start splunk up again on both.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;We'll drop the TTL on these  ahead of time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298952#M56542</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2020-09-29T13:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298953#M56543</link>
      <description>&lt;P&gt;I finally figured out a better way to do this than using selective indexing/forwarding. I'm just setting default index everything and forward everything, then using blacklists to not forward what indexes I don't want forwarded, and it works well. Here is the config:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = mynewserver_9998
disabled = false
forwardedindex.0.whitelist = .*
forwardedindex.1.blacklist = _.*
forwardedindex.2.blacklist = summary_.*
forwardedindex.3.blacklist = syslogs_.*
forwardedindex.4.blacklist = (bitbucket|firedalerts|fishbucket|mainframe_index|historydb|os|ossec|temp_index|unix_summary)
forwardedindex.5.blacklist = (authDb|hashDb|historydb|summarydb)
indexAndForward = true


[tcpout:mynewserver_9998]
server = 128.xxx.xxx.xxx:9998

[tcpout-server://128.xxx.xxx.xxx:9998]
sslCertPath = $SPLUNK_HOME/etc/auth/servercert.pem
sslPassword = $1$4LxTWwXEyIY=
sslRootCAPath = $SPLUNK_HOME/etc/auth/ca.pem
sslVerifyServerCert = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298953#M56543</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-04-05T23:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298954#M56544</link>
      <description>&lt;P&gt;I see. What you wanted was not meant for 'selective indexing'. It is because what you wanted was not partially indexing and forwarding selected ones. Your way should work. Or, I believe transforms should do similar job. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 17:22:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298954#M56544</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2017-04-06T17:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298955#M56545</link>
      <description>&lt;P&gt;You should click &lt;CODE&gt;Accept&lt;/CODE&gt; on your answer to close out the question.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298955#M56545</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-11T03:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: In selective indexing with defaultGroup=noforward, do I have to worry about adding _INDEX_AND_FORWARD_ROUTING to Splunk default inputs also?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298956#M56546</link>
      <description>&lt;P&gt;@woodcock -- Thanks for the reminder. I just did.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-selective-indexing-with-defaultGroup-noforward-do-I-have-to/m-p/298956#M56546</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-09-12T16:29:35Z</dc:date>
    </item>
  </channel>
</rss>

