<?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 How to route to index by Source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577873#M102070</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Having an issue trying to route events to an index by source, posting as a new question as I've not found anything that's helped me understand how /where to configure this.&lt;/P&gt;&lt;P&gt;We have events being streamed to HEC (Token) hosted on a HF, which is then forwarding the events to an Indexer, all events are ending up in the Main index on the Indexer.&lt;/P&gt;&lt;P&gt;How can events of the default field Source 'xyz' be sent to a specific Indexer Index 'index_xyz'?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've seen numerous posts about routing to a specific Index using the SourceType but not Source. I know props.conf and transforms.conf are needed but I've not seen any examples for using Source, also I'm unsure whether they should be implemented on the HF or the Indexer...&lt;/P&gt;&lt;P&gt;The resoning for using Source for routing to a specific index is that these events are always lsted as the Token Name 'xyz'.&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 10:44:18 GMT</pubDate>
    <dc:creator>danielrichards</dc:creator>
    <dc:date>2021-12-09T10:44:18Z</dc:date>
    <item>
      <title>How to route to index by Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577873#M102070</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Having an issue trying to route events to an index by source, posting as a new question as I've not found anything that's helped me understand how /where to configure this.&lt;/P&gt;&lt;P&gt;We have events being streamed to HEC (Token) hosted on a HF, which is then forwarding the events to an Indexer, all events are ending up in the Main index on the Indexer.&lt;/P&gt;&lt;P&gt;How can events of the default field Source 'xyz' be sent to a specific Indexer Index 'index_xyz'?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've seen numerous posts about routing to a specific Index using the SourceType but not Source. I know props.conf and transforms.conf are needed but I've not seen any examples for using Source, also I'm unsure whether they should be implemented on the HF or the Indexer...&lt;/P&gt;&lt;P&gt;The resoning for using Source for routing to a specific index is that these events are always lsted as the Token Name 'xyz'.&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577873#M102070</guid>
      <dc:creator>danielrichards</dc:creator>
      <dc:date>2021-12-09T10:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to route to index by Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577874#M102071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146903"&gt;@danielrichards&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the approach to indexes choice should be: to put in the same index events with the same retention and the same access rules.&lt;/P&gt;&lt;P&gt;It isn't so relevant but it isn't i a good idea to put different sources in different indexes because you'll have to manage more indexes than required.&lt;/P&gt;&lt;P&gt;If you want to do this, you can override the index in two ways:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;putting the index value in the HEC inputs,&lt;/LI&gt;&lt;LI&gt;overriding the value in the indexers (or Heavy Forwarders when present) following the instructions at&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-can-I-override-an-index-name-based-on-sourcetype/td-p/161444" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-can-I-override-an-index-name-based-on-sourcetype/td-p/161444&lt;/A&gt;&amp;nbsp;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:57:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577874#M102071</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-12-09T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to route to index by Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577877#M102072</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;And use source instead of sourcetype is shown here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With HEC if you have several tokens based on source then the easiest way is set it in inputs.conf as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;said.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 11:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577877#M102072</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-09T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to route to index by Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577879#M102073</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had tried to specify the index in the HEC Inputs without success.&amp;nbsp; Not sure why.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Following the instructions at&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-can-I-override-an-index-name-based-on-sourcetype/td-p/161444" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/How-can-I-override-an-index-name-based-on-sourcetype...&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;. worked, thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Interestingly it only works when defining the props.conf &amp;amp; transform.conf on the HF, and not the Indexer...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 11:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577879#M102073</guid>
      <dc:creator>danielrichards</dc:creator>
      <dc:date>2021-12-09T11:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to route to index by Source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577881#M102074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146903"&gt;@danielrichards&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to make the overriding on the first Splunk full system (not UFs) that cooks the ingested logs.&lt;/P&gt;&lt;P&gt;In other words: if you have an HF you have to put conf files on it, except if you don't send cooked logs, in this case you have to put them on Indexers.&lt;/P&gt;&lt;P&gt;I usually put these conf files both on HFs and Indexers to be more sure.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the Contributors. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 12:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-to-index-by-Source/m-p/577881#M102074</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-12-09T12:01:27Z</dc:date>
    </item>
  </channel>
</rss>

