<?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 Splunk standalone: How to split main data in multiple indexes? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/639994#M12785</link>
    <description>&lt;P&gt;I installed splunk standalone (9.0.4) with ansible &lt;A href="https://github.com/splunk/splunk-ansible/" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-ansible/&lt;/A&gt; on Ubuntu jammy.&lt;/P&gt;
&lt;P&gt;That has worked well. Data is ingested from port 9997 and for now, everything goes to main index.&lt;/P&gt;
&lt;P&gt;I want to split things between multiple indexes aka windows, linux and other source types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this would be through transforms as per &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad&lt;/A&gt; but this seems to be only valid for heavy forwarder role.&lt;BR /&gt;Or cluster master as per &lt;A href="https://github.com/splunk/splunk-ansible/blob/develop/roles/splunk_cluster_master/tasks/configure_indexes.yml" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-ansible/blob/develop/roles/splunk_cluster_master/tasks/configure_indexes.yml&lt;/A&gt;&lt;BR /&gt;In role variable, only found smartstore with an index array but I believe it is different.&lt;BR /&gt;I tried&lt;/P&gt;
&lt;P&gt;* forwarding working with transform in /opt/splunk/etc/system/local/props.conf and /opt/splunk/etc/system/local/transforms.conf but nok&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ sudo cat /opt/splunk/etc/system/local/props.conf
# https://docs.splunk.com/Documentation/Splunk/9.0.4/Indexer/Setupmultipleindexes
[SOURCE1]
TRANSFORMS-index = SOURCE1Redirect
$ sudo cat /opt/splunk/etc/system/local/transforms.conf
[SOURCE1Redirect]
#REGEX = ,"file":{"path":"\/var\/log\/SOURCE1\/SOURCE1.log"}},"message":
REGEX = ^{.*SOURCE1.*}$
DEST_KEY = _MetaData:Index
FORMAT = SOURCE1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;* get tcp data input losing all the json fields extract and only raw unusable data. Similar to &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Splunk-is-adding-weird-strings-like-quot-linebreaker-x00-x00/m-p/21598" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Splunk-is-adding-weird-strings-like-quot-linebreaker-x00-x00/m-p/21598&lt;/A&gt;&lt;BR /&gt;* set data receiver in forwarding section and setting index in inputs.conf but not getting data ingested even if data received from tcpdump. And not found how to associate a specific receiver port to an index.&lt;/P&gt;
&lt;P&gt;tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ sudo more /opt/splunk/etc/system/local/inputs.conf
[splunktcp://9997]
disabled = 0

[splunktcp://9525]
disabled = 0
index = sourcetype1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advices?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 20:45:14 GMT</pubDate>
    <dc:creator>juju</dc:creator>
    <dc:date>2023-04-14T20:45:14Z</dc:date>
    <item>
      <title>Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/639994#M12785</link>
      <description>&lt;P&gt;I installed splunk standalone (9.0.4) with ansible &lt;A href="https://github.com/splunk/splunk-ansible/" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-ansible/&lt;/A&gt; on Ubuntu jammy.&lt;/P&gt;
&lt;P&gt;That has worked well. Data is ingested from port 9997 and for now, everything goes to main index.&lt;/P&gt;
&lt;P&gt;I want to split things between multiple indexes aka windows, linux and other source types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this would be through transforms as per &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad&lt;/A&gt; but this seems to be only valid for heavy forwarder role.&lt;BR /&gt;Or cluster master as per &lt;A href="https://github.com/splunk/splunk-ansible/blob/develop/roles/splunk_cluster_master/tasks/configure_indexes.yml" target="_blank" rel="noopener"&gt;https://github.com/splunk/splunk-ansible/blob/develop/roles/splunk_cluster_master/tasks/configure_indexes.yml&lt;/A&gt;&lt;BR /&gt;In role variable, only found smartstore with an index array but I believe it is different.&lt;BR /&gt;I tried&lt;/P&gt;
&lt;P&gt;* forwarding working with transform in /opt/splunk/etc/system/local/props.conf and /opt/splunk/etc/system/local/transforms.conf but nok&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ sudo cat /opt/splunk/etc/system/local/props.conf
# https://docs.splunk.com/Documentation/Splunk/9.0.4/Indexer/Setupmultipleindexes
[SOURCE1]
TRANSFORMS-index = SOURCE1Redirect
$ sudo cat /opt/splunk/etc/system/local/transforms.conf
[SOURCE1Redirect]
#REGEX = ,"file":{"path":"\/var\/log\/SOURCE1\/SOURCE1.log"}},"message":
REGEX = ^{.*SOURCE1.*}$
DEST_KEY = _MetaData:Index
FORMAT = SOURCE1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;* get tcp data input losing all the json fields extract and only raw unusable data. Similar to &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Splunk-is-adding-weird-strings-like-quot-linebreaker-x00-x00/m-p/21598" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Splunk-is-adding-weird-strings-like-quot-linebreaker-x00-x00/m-p/21598&lt;/A&gt;&lt;BR /&gt;* set data receiver in forwarding section and setting index in inputs.conf but not getting data ingested even if data received from tcpdump. And not found how to associate a specific receiver port to an index.&lt;/P&gt;
&lt;P&gt;tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ sudo more /opt/splunk/etc/system/local/inputs.conf
[splunktcp://9997]
disabled = 0

[splunktcp://9525]
disabled = 0
index = sourcetype1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advices?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 20:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/639994#M12785</guid>
      <dc:creator>juju</dc:creator>
      <dc:date>2023-04-14T20:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640036#M12787</link>
      <description>&lt;P&gt;I managed to split index with multiple splunk HEC and matching index as defined in /opt/splunk/etc/apps/search/local/inputs.conf and /opt/splunk/etc/apps/search/local/indexes.conf&lt;/P&gt;&lt;P&gt;Not sure if recommended way but so far, it works.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 23:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640036#M12787</guid>
      <dc:creator>juju</dc:creator>
      <dc:date>2023-04-14T23:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640063#M12788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254296"&gt;@juju&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first, it's possible to send data to different indexes that main only for new data, when a log is already&amp;nbsp; indexed in one index, it isn't possible to move it in another one, so for the old data, the only way is reindex all of them.&lt;/P&gt;&lt;P&gt;If instead you're speaking of new data, the best approach is to define the index value in the inputs.conf, so the first question is: how do you ingest your data?&lt;/P&gt;&lt;P&gt;you spoke of port 9997, this means that you take data from other Forwarders, so the best and easiest approach is to insert the option "index=&amp;lt;your_index&amp;gt;" in the inputs.conf of the Add-Ons that you're using to take data.&lt;/P&gt;&lt;P&gt;You can also override the index value on the Indexer using the method that you shared in your question and that it's described in many answers in the Community.&lt;/P&gt;&lt;P&gt;The only constrain is that this job must be done by the first Splunk Full instance (not Universal Forwarder) that the data pass through.&lt;/P&gt;&lt;P&gt;In other words, if in your architecture you have one or more intermediate Heavy Forwarders, you must put the index on them to override the index configuration and send data to the correct index.&lt;/P&gt;&lt;P&gt;If instead you don't have any HF, you can put it on the Indexer, in other words the affirmation that it's a role for HFs, in general, is wrong!&lt;/P&gt;&lt;P&gt;Then the transformation is never applied on Cluster Master!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 06:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640063#M12788</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-15T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640083#M12789</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source is Cribl sending to Splunk Single instance as destination. There is no index option.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cribl.io/stream/destinations-splunk" target="_blank"&gt;https://docs.cribl.io/stream/destinations-splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As splunk standalone, no other splunk servers.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 12:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640083#M12789</guid>
      <dc:creator>juju</dc:creator>
      <dc:date>2023-04-15T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640085#M12790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254296"&gt;@juju&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the problem is that, reading the Cribl documentation, "&lt;SPAN&gt;From the perspective of the receiving Splunk Cloud instance, the data arrives cooked and parsed."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This means that it isn't possible to modify index assignment as described in documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You should ask to Cribl support if it's possible to add the index definition on Cribl,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 15:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640085#M12790</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-15T15:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640101#M12791</link>
      <description>&lt;P&gt;I've never used Cribl but as the data is supposed to be parsed, it means that with each event all metadata is sent along. So you should be able to set the index field within cribl pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 20:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640101#M12791</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-15T20:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640137#M12797</link>
      <description>&lt;P&gt;The easiest way is to do that kind of thing is like this:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Assignmetadatatoeventsdynamically" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Assignmetadatatoeventsdynamically&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 21:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640137#M12797</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-16T21:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640139#M12798</link>
      <description>&lt;P&gt;Thanks all!&lt;/P&gt;&lt;P&gt;As said, I got it working with multiple splunk HEC collections.&lt;/P&gt;&lt;P&gt;I will check on cribl side if better way.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 21:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640139#M12798</guid>
      <dc:creator>juju</dc:creator>
      <dc:date>2023-04-16T21:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk standalone: How to split main data in multiple indexes?</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640151#M12799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254296"&gt;@juju&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if one answer solves your need, please accept one answer for the other people of Community or tell us how we can help you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the Contributors;-)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 06:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-standalone-How-to-split-main-data-in-multiple-indexes/m-p/640151#M12799</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-17T06:27:11Z</dc:date>
    </item>
  </channel>
</rss>

