<?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: send data to different index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-data-to-different-index/m-p/646646#M109970</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149978"&gt;@sarit_s&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first the rules to have different indexes are two:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;different retention times,&lt;/LI&gt;&lt;LI&gt;different access grants.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your case I suppose that debug logs have a lower retention than the others.&lt;/P&gt;&lt;P&gt;Anyway, you can address logs to an index in inputs.conf, indicating the destination index in each stanza.&lt;/P&gt;&lt;P&gt;Otherwise, you can override the index value following the instructions that you can find in many answers.&lt;/P&gt;&lt;P&gt;In few words:&lt;/P&gt;&lt;P&gt;you have at first to identify the sourcetype and a regex to select the events to send in a different index, then you have to put&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-index = overrideindex&lt;/LI-CODE&gt;&lt;P&gt;and on transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[overrideindex]
DEST_KEY =_MetaData:Index
REGEX = &amp;lt;your_regex&amp;gt;
FORMAT = your_new_index&lt;/LI-CODE&gt;&lt;P&gt;Rememeber that these two conf files must be in the first full Splunk instance you have (not Universal Forwarder), in other words in the first Heavy Forwarder (if present) or on Indexers.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 12:13:21 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-06-12T12:13:21Z</dc:date>
    <item>
      <title>How to send data to different index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-data-to-different-index/m-p/646644#M109969</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I have some kind of data that I want to filter to different index and in the future i would like to stop this index entirely.&lt;/P&gt;
&lt;P&gt;The data I want to filter is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. all the logs with debug mode&lt;/P&gt;
&lt;P&gt;2. logs that contains&amp;nbsp; Categories!="" OR Categories!=$* OR Categories!="* *"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How it can be done ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-data-to-different-index/m-p/646644#M109969</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2023-06-12T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: send data to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-data-to-different-index/m-p/646646#M109970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149978"&gt;@sarit_s&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first the rules to have different indexes are two:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;different retention times,&lt;/LI&gt;&lt;LI&gt;different access grants.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your case I suppose that debug logs have a lower retention than the others.&lt;/P&gt;&lt;P&gt;Anyway, you can address logs to an index in inputs.conf, indicating the destination index in each stanza.&lt;/P&gt;&lt;P&gt;Otherwise, you can override the index value following the instructions that you can find in many answers.&lt;/P&gt;&lt;P&gt;In few words:&lt;/P&gt;&lt;P&gt;you have at first to identify the sourcetype and a regex to select the events to send in a different index, then you have to put&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-index = overrideindex&lt;/LI-CODE&gt;&lt;P&gt;and on transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[overrideindex]
DEST_KEY =_MetaData:Index
REGEX = &amp;lt;your_regex&amp;gt;
FORMAT = your_new_index&lt;/LI-CODE&gt;&lt;P&gt;Rememeber that these two conf files must be in the first full Splunk instance you have (not Universal Forwarder), in other words in the first Heavy Forwarder (if present) or on Indexers.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 12:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-data-to-different-index/m-p/646646#M109970</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-12T12:13:21Z</dc:date>
    </item>
  </channel>
</rss>

