<?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 classify into multiple indexes based on one sourcetype in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695647#M19945</link>
    <description>&lt;P&gt;Then&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;&amp;nbsp;‘s answer should work with minor change on outputs.conf. You should just use default group and put all those indexers there and no index definitions into it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 06:23:12 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2024-08-08T06:23:12Z</dc:date>
    <item>
      <title>How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694629#M19854</link>
      <description>&lt;P&gt;Currently, my sourcetype contains a mix of bank logs and card logs. I would like to categorize this into `index=bank` and `index=card` respectively.&lt;BR /&gt;&lt;BR /&gt;Currently, the search is done with index=main, and all data is displayed. If index=bank, I want only bank-related logs to be output.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We set the forwarder as follows and created bank, card, and error indexes on the server that will receive the data.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the code I have written so far... I need help,,,,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk@heavy-forwarder:/opt/splunk/etc/apps/search/local:&amp;gt; cat inputs.conf
[monitor:///opt/splunk/var/log/splunk/test.log]
disabled = false
host = heavy-forwarder
sourcetype = test
crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk@heavy-forwarder:/opt/splunk/etc/system/local:&amp;gt; cat props.conf
[test]
TRANSFORM-routing=bankRouting,cardRouting,errorRouting&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;splunk@heavy-forwarder:/opt/splunk/etc/system/local:&amp;gt; cat transform.conf
[bankRouting]
REGEX=bank
DEST_KEY =_INDEX
FORMAT = bankGroup

[cardRouting]
REGEX=card
DEST_KEY =_INDEX
FORMAT = cardGroup

[errorGroup]
REGEX=error
DEST_KEY =_INDEX
FORMAT = errorGroup&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;splunk@heavy-forwarder:/opt/splunk/etc/system/local:&amp;gt; cat outputs.conf
[tcpout:bankGroup]
server = 192.168.111.153:9997

[tcpout:cardGroup]
server = 192.168.111.151:9997

[tcpout:errorGroup]
server = 192.168.111.152:9997&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 05:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694629#M19854</guid>
      <dc:creator>silverKi</dc:creator>
      <dc:date>2024-07-30T05:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694630#M19855</link>
      <description>&lt;P&gt;This is my test.log&amp;nbsp;&lt;BR /&gt;[07-30-2024 02:19:22] +0900 INFO LMTracker [14307 MainThread] username=fIg-Jvkf, Visa, cardtype=credit, cardnumber=7085-5579-5664-8197, cvc=794, expireday=05/26, user-phone=852-9765-3539, comapny=IBK, com-tel=02-885-8485, address=7547 0c2F1YA76CHEkgw Street, city=Seoul, Country=Korea, status=500 Internal Server Error, Server error. Please try again later card.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 05:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694630#M19855</guid>
      <dc:creator>silverKi</dc:creator>
      <dc:date>2024-07-30T05:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694635#M19857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268696"&gt;@silverKi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To classify logs into multiple indexes based on one sourcetype:&lt;BR /&gt;props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TRANSFORMS-routing = bankRouting,cardRouting,errorRouting&lt;/LI-CODE&gt;&lt;P&gt;Note:&lt;BR /&gt;-the plural form TRANSFORM&lt;STRONG&gt;S&lt;/STRONG&gt;-routing instead of TRANSFORM-routing.&lt;/P&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[bankRouting]
REGEX = (?i)bank
DEST_KEY = _MetaData:Index
FORMAT = bank

[cardRouting]
REGEX = (?i)card
DEST_KEY = _MetaData:Index
FORMAT = card

[errorRouting]
REGEX = (?i)error
DEST_KEY = _MetaData:Index
FORMAT = error&lt;/LI-CODE&gt;&lt;P&gt;Note:&lt;BR /&gt;-Use (?i) for case-insensitive matching&lt;BR /&gt;-Change DEST_KEY to _MetaData:Index&lt;BR /&gt;-FORMAT should be the exact index name&lt;/P&gt;&lt;P&gt;outputs.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = defaultGroup

[tcpout:defaultGroup]
server = 192.168.111.153:9997

[tcpout-server://192.168.111.151:9997]
index = card

[tcpout-server://192.168.111.152:9997]
index = error&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;</description>
      <pubDate>Tue, 30 Jul 2024 06:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694635#M19857</guid>
      <dc:creator>KendallW</dc:creator>
      <dc:date>2024-07-30T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694637#M19858</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;&amp;nbsp;,,, Thank for your tips,, But when I search index=card in search app, The result is nothing..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/694637#M19858</guid>
      <dc:creator>silverKi</dc:creator>
      <dc:date>2024-07-30T06:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695349#M19911</link>
      <description>&lt;P&gt;1. Does the "card" index exist?&lt;/P&gt;&lt;P&gt;2. Is any data at all being ingested to that index?&lt;/P&gt;&lt;P&gt;3. Are there any parsing or connectivity issues in the _internal index?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 00:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695349#M19911</guid>
      <dc:creator>KendallW</dc:creator>
      <dc:date>2024-08-06T00:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695571#M19931</link>
      <description>Do you really have 3 different indexers which each contains own indexes like 1st card, 2nd bank and 3rd error indexes?&lt;BR /&gt;Or do you have one indexer (or cluster) which contains all those separate indexes?</description>
      <pubDate>Wed, 07 Aug 2024 14:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695571#M19931</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-08-07T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695627#M19939</link>
      <description>&lt;P&gt;have one forwarder and three indexer servers.&lt;BR /&gt;Each indexer server holds the indexes index-card,&amp;nbsp; index=bank, index=error.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 01:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695627#M19939</guid>
      <dc:creator>silverKi</dc:creator>
      <dc:date>2024-08-08T01:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695643#M19944</link>
      <description>&lt;P&gt;OK. Apart from the fact that you're routing to servers (which - if these are clustered indexers should replicate the buckets), not redirecting to indexes (indexer is not the same as index), let me point out two things&lt;/P&gt;&lt;P&gt;1) You should not use the main index. It comes configured by default so that something is created in the environment but you should rather have properly configured indexes created according to your needs&lt;/P&gt;&lt;P&gt;2) Do you _need_ to split the data into indexes? (Two main reasons for splitting data into indexes are access rights and retention periods). That's not the same as using two different sourcetypes for two different kinds of data (which you should definitely do if the data formats do indeed differ).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 05:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695643#M19944</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-08-08T05:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695647#M19945</link>
      <description>&lt;P&gt;Then&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;&amp;nbsp;‘s answer should work with minor change on outputs.conf. You should just use default group and put all those indexers there and no index definitions into it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 06:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695647#M19945</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-08-08T06:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to classify into multiple indexes based on one sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695660#M19946</link>
      <description>&lt;P&gt;1) I would like to say thank you for your advice, I think I overlooked the main index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The main reason what I want to split from one source type say test, into index=bank, index=card, index=error is because I need to different access permissions.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 07:58:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-classify-into-multiple-indexes-based-on-one-sourcetype/m-p/695660#M19946</guid>
      <dc:creator>silverKi</dc:creator>
      <dc:date>2024-08-08T07:58:27Z</dc:date>
    </item>
  </channel>
</rss>

