<?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: Change index based on source and index from different environments in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743484#M118110</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/171872"&gt;@splunkreal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;said, the easiest approach is to create two copies of the Splunk_TA_Windows that differ only for the index in the input stanzas.&lt;/P&gt;&lt;P&gt;If not possible, you could follow the approach that you described.&lt;/P&gt;&lt;P&gt;Remember that in the second case, you have to put these configurations not in the Universal Forwarders, but in the first full Splunk instance that data pass throug, in other words on indexers or, if present on intermediate Heavy Forwarders.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 07:40:17 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2025-04-04T07:40:17Z</dc:date>
    <item>
      <title>Change index based on source and index from different environments</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743468#M118107</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have Windows servers from two environments, we want WinEventLog source (Windows Events logs) to go in "windows" index from main environment and secondary environment to go to "sec_windows". On UF from secondary environment we have setup inputs.conf with index = sec_windows but this doesn't work : all goes to windows index, could you help ? Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf


[source::WinEventLog:*]

TRANSFORMS-set_index_sec_windows = set_index_sec_windows

TRANSFORMS-set_index_windows_wineventlog = set_index_windows_wineventlog



transforms.conf



# Windows

[set_index_windows_wineventlog]

SOURCE_KEY = MetaData:Source

REGEX = WinEventLog

DEST_KEY = _MetaData:Index

FORMAT = windows



[set_index_sec_windows]

SOURCE_KEY = _MetaData:Index

REGEX = sec_windows

DEST_KEY = _MetaData:Index

FORMAT = sec_windows&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 21:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743468#M118107</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2025-04-03T21:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change index based on source and index from different environments</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743469#M118108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/171872"&gt;@splunkreal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to set the index in the inputs.conf on the UF on in your secondary environment?&lt;/P&gt;&lt;P&gt;If not then you will need to use props/transforms as described - However this configuration will not work by default on a UF as this parsing is done on a HF/Indexer. I presume this is currently applied to the UF, otherwise it would also change the configuration for your primary environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; &lt;STRONG&gt;Did this answer help you? If so, please consider&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding kudos to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 21:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743469#M118108</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-04-03T21:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change index based on source and index from different environments</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743480#M118109</link>
      <description>&lt;P&gt;Hello yes UF is already setup on secondary environment. On first environment we use&amp;nbsp;_TCP_ROUTING as we also have two Splunk platforms...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 06:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743480#M118109</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2025-04-04T06:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change index based on source and index from different environments</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743484#M118110</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/171872"&gt;@splunkreal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;said, the easiest approach is to create two copies of the Splunk_TA_Windows that differ only for the index in the input stanzas.&lt;/P&gt;&lt;P&gt;If not possible, you could follow the approach that you described.&lt;/P&gt;&lt;P&gt;Remember that in the second case, you have to put these configurations not in the Universal Forwarders, but in the first full Splunk instance that data pass throug, in other words on indexers or, if present on intermediate Heavy Forwarders.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 07:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743484#M118110</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-04-04T07:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change index based on source and index from different environments</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743687#M118128</link>
      <description>&lt;P&gt;If you're applying those props/transforms to the UF then that would explain why it isnt taking effect - the parsing is not carried out on the UF (except specifically enabled!) so they will need applying on the HF, unless you're able to set the correct index values on the secondary environment UFs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding kudos to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 14:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743687#M118128</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-04-07T14:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change index based on source and index from different environments</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743690#M118129</link>
      <description>&lt;P&gt;Hello, we found solution, there was metadata index source key that was possible to use. Thanks for your help guys.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 15:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-based-on-source-and-index-from-different/m-p/743690#M118129</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2025-04-07T15:34:42Z</dc:date>
    </item>
  </channel>
</rss>

