<?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: How to separate hosts/other fields into other data indexes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477761#M87717</link>
    <description>&lt;P&gt;Hi @bigfatyeastroll,&lt;BR /&gt;
as @jscraig2006 said once indexed it isn't possible to change index!&lt;BR /&gt;
I suggest you rethink your data structure: Splunk isn't a database where you separate data into tables, the correct way to identify a data flow is not the index but the sourcetype, to which all knowledge objects normally refer ( fields, tags, eventtypes).&lt;BR /&gt;
Splunk Best Practices say that there are two / three reasons to put the data in different indices:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;retention,&lt;/LI&gt;
&lt;LI&gt;access rights;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;in other words,  you should put in the same index data with the same retention period and the same access rights, not because they are related to different things.&lt;BR /&gt;
It is also advisable not to put data with very different volumes in the same index: e.g. I would never combine data from a stream with few events per day with data from a stream with millions of events per day.&lt;BR /&gt;
It is also not a good thing to have too many indices because they are more complex to manage.&lt;/P&gt;

&lt;P&gt;To return to your request, it's not possible to change the index to a data after it has been indexed, but it is possible to do it first: you need to find a way to identify it (e.g. the host of origin or a regex that identifies it) and then submit it to a transformation; for more information look at &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.1/Data/Advancedsourcetypeoverrides"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.1/Data/Advancedsourcetypeoverrides&lt;/A&gt; where they explain how to override a main field.&lt;/P&gt;

&lt;P&gt;To override the index you have to do something like this on your Indexers or (when present) on your Heavy Forwarders:&lt;/P&gt;

&lt;P&gt;on &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [overrideindex]
 DEST_KEY =_MetaData:Index
 REGEX = your_regex
 FORMAT = my_new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;on &lt;STRONG&gt;props.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [mysourcetype]
 TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jan 2020 06:39:37 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-01-11T06:39:37Z</dc:date>
    <item>
      <title>How to separate hosts/other fields into other data indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477759#M87715</link>
      <description>&lt;P&gt;I've got several data indexes (only one server) already that are separated by forwarders or listener ports. However, I have several devices that can only send to the default syslog port. How can I "pull out" events and place them into different indexes?&lt;/P&gt;
&lt;P&gt;Is there a way in the Splunk Enterprise GUI to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 22:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477759#M87715</guid>
      <dc:creator>bigfatyeastroll</dc:creator>
      <dc:date>2020-09-17T22:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate hosts/other fields into other data indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477760#M87716</link>
      <description>&lt;P&gt;You can't. Once the data is indexed, you can't move the data to another index. Why not stand up a syslog server with a UF? Then you can send your syslog data to different directories based upon host and then send them to the peer based upon what the data type is. Network, firewall etc. &lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 00:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477760#M87716</guid>
      <dc:creator>jscraig2006</dc:creator>
      <dc:date>2020-01-11T00:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate hosts/other fields into other data indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477761#M87717</link>
      <description>&lt;P&gt;Hi @bigfatyeastroll,&lt;BR /&gt;
as @jscraig2006 said once indexed it isn't possible to change index!&lt;BR /&gt;
I suggest you rethink your data structure: Splunk isn't a database where you separate data into tables, the correct way to identify a data flow is not the index but the sourcetype, to which all knowledge objects normally refer ( fields, tags, eventtypes).&lt;BR /&gt;
Splunk Best Practices say that there are two / three reasons to put the data in different indices:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;retention,&lt;/LI&gt;
&lt;LI&gt;access rights;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;in other words,  you should put in the same index data with the same retention period and the same access rights, not because they are related to different things.&lt;BR /&gt;
It is also advisable not to put data with very different volumes in the same index: e.g. I would never combine data from a stream with few events per day with data from a stream with millions of events per day.&lt;BR /&gt;
It is also not a good thing to have too many indices because they are more complex to manage.&lt;/P&gt;

&lt;P&gt;To return to your request, it's not possible to change the index to a data after it has been indexed, but it is possible to do it first: you need to find a way to identify it (e.g. the host of origin or a regex that identifies it) and then submit it to a transformation; for more information look at &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.1/Data/Advancedsourcetypeoverrides"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.1/Data/Advancedsourcetypeoverrides&lt;/A&gt; where they explain how to override a main field.&lt;/P&gt;

&lt;P&gt;To override the index you have to do something like this on your Indexers or (when present) on your Heavy Forwarders:&lt;/P&gt;

&lt;P&gt;on &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [overrideindex]
 DEST_KEY =_MetaData:Index
 REGEX = your_regex
 FORMAT = my_new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;on &lt;STRONG&gt;props.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [mysourcetype]
 TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 06:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477761#M87717</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-01-11T06:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate hosts/other fields into other data indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477762#M87718</link>
      <description>&lt;P&gt;Great, thanks! &lt;/P&gt;

&lt;P&gt;Those 2 reasons you gave are the reasons I am separating them out. One group has multiple devices and some are only able to send to default syslog (which other groups have devices like this as well). &lt;/P&gt;

&lt;P&gt;Since Splunk is not my main job role, I was hoping there would be an "easy" GUI way. &lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 15:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-hosts-other-fields-into-other-data-indexes/m-p/477762#M87718</guid>
      <dc:creator>bigfatyeastroll</dc:creator>
      <dc:date>2020-01-13T15:02:12Z</dc:date>
    </item>
  </channel>
</rss>

