<?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: Optimising redirection of an index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411098#M95319</link>
    <description>&lt;P&gt;Hi @m91886 &lt;/P&gt;

&lt;P&gt;Looks like you have a few possible solutions to your question. If one of them provided a working solution, please don't forget to click "Accept" below the best answer to resolve this post. If you still need help, please leave a comment. Don’t forget to upvote anything that was helpful too. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 16:46:24 GMT</pubDate>
    <dc:creator>Anam</dc:creator>
    <dc:date>2019-04-24T16:46:24Z</dc:date>
    <item>
      <title>Optimising redirection of an index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411093#M95314</link>
      <description>&lt;P&gt;I am redirecting an index however, I would like to possibly increase performance.&lt;/P&gt;

&lt;P&gt;My props.conf looks like this:&lt;/P&gt;

&lt;P&gt;[host::MM[0-9]{6}-PC]&lt;BR /&gt;
TRANSFORMS-index = overrideIndexoldIndex&lt;/P&gt;

&lt;P&gt;transforms.conf looks like this:&lt;/P&gt;

&lt;P&gt;[overrideIndexoldIndex]&lt;BR /&gt;
DEST_KEY =_MetaData:Index&lt;BR /&gt;
REGEX = oldIndex&lt;BR /&gt;
SOURCE_KEY=_MetaData:Index&lt;BR /&gt;
FORMAT = newIndex&lt;/P&gt;

&lt;P&gt;My understanding is that it is applying this transform for all data from host:MM[0-9]{6}-PC.  The transform is just redirecting index:oldIndex to newIndex.  There is a lot of data from hosts that matches this criteria.  Is there a way to first check that the index is oldIndex and than look for those hosts and apply the transform then.  Logically this would increase performance as there is far less data being sent to the index oldIndex than, the data being sent from those hosts that match our criteria.&lt;/P&gt;

&lt;P&gt;Essentially I would like to understand the parsing of data better surrounding transforms and if this is a valid optimization how to go about implementing it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411093#M95314</guid>
      <dc:creator>m91886</dc:creator>
      <dc:date>2020-09-30T00:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Optimising redirection of an index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411094#M95315</link>
      <description>&lt;P&gt;You current configuration (assuming it's been placed on the instance that does the parsing i.e. heavy forwarder or indexer whichever comes first) override index name to &lt;CODE&gt;newIndex&lt;/CODE&gt; for each event tagged with &lt;CODE&gt;index=oldIndex&lt;/CODE&gt; and coming from hosts matching pattern &lt;CODE&gt;MM[0-9]{6}-PC&lt;/CODE&gt;. Unfortunately, this override can only be setup at sourcetype, source OR host level, and not at index level. &lt;/P&gt;

&lt;P&gt;Any specific reasons for overriding index for those host/index combination? Could you explain your requirement little more in detail?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411094#M95315</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-18T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Optimising redirection of an index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411095#M95316</link>
      <description>&lt;P&gt;Actually, the sourcetype would work.  The reason is that a group is sending splunk logs to two environments.  On one those environment's logs are set for oldIndex and on the other environment we want them in newIndex.  Since the universal forwarder only sends those logs using one index to both environments we are using the transforms to change the index in our environment.&lt;/P&gt;

&lt;P&gt;Would this be valid?&lt;/P&gt;

&lt;P&gt;[sourcetype:OriginalSourceType]&lt;BR /&gt;
[host::MM[0-9]{6}-PC]&lt;BR /&gt;
TRANSFORMS-index = overrideIndexoldIndex&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 01:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411095#M95316</guid>
      <dc:creator>m91886</dc:creator>
      <dc:date>2019-04-19T01:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Optimising redirection of an index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411096#M95317</link>
      <description>&lt;P&gt;Your logic and configurations are correct and it cannot be done any other way, other than by &lt;CODE&gt;source&lt;/CODE&gt; or by &lt;CODE&gt;sourcetype&lt;/CODE&gt; instead of by &lt;CODE&gt;host&lt;/CODE&gt; in props.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 13:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411096#M95317</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-19T13:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Optimising redirection of an index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411097#M95318</link>
      <description>&lt;P&gt;For sourcetypes, you don't need the prefix. The stanza name should be like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::&amp;lt;source&amp;gt;] OR [host::&amp;lt;host&amp;gt;] OR  [&amp;lt;sourcetype&amp;gt;] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Apr 2019 13:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411097#M95318</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-19T13:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Optimising redirection of an index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411098#M95319</link>
      <description>&lt;P&gt;Hi @m91886 &lt;/P&gt;

&lt;P&gt;Looks like you have a few possible solutions to your question. If one of them provided a working solution, please don't forget to click "Accept" below the best answer to resolve this post. If you still need help, please leave a comment. Don’t forget to upvote anything that was helpful too. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 16:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Optimising-redirection-of-an-index/m-p/411098#M95319</guid>
      <dc:creator>Anam</dc:creator>
      <dc:date>2019-04-24T16:46:24Z</dc:date>
    </item>
  </channel>
</rss>

