<?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 Heavy forwarder - routing to different indexes depending on field value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Heavy-forwarder-routing-to-different-indexes-depending-on-field/m-p/337045#M62223</link>
    <description>&lt;P&gt;Hi everyone !&lt;/P&gt;

&lt;P&gt;I'm new to Splunk and I'm trying to see what can be done with it. I was wondering if it was possible, with a heavy forwarder, to forward data to different indexes depending on the value of a specific field?&lt;/P&gt;

&lt;P&gt;For example, if I have the indexes red_colored_vegetables and green_colored_vegetables, and the following data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| Id | Vegetable    | Color |
| 1  | Tomato       | Red   |
| 2  | Leek         | Green |
| 3  | Salad        | Green |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want that 1 is forwarded to the index  red_colored_vegetables and that 2 and 3 are forwarded to the index green_colored_vegetables.&lt;BR /&gt;
Is it feasible?&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:21:40 GMT</pubDate>
    <dc:creator>Clovisa</dc:creator>
    <dc:date>2020-09-29T18:21:40Z</dc:date>
    <item>
      <title>Heavy forwarder - routing to different indexes depending on field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Heavy-forwarder-routing-to-different-indexes-depending-on-field/m-p/337045#M62223</link>
      <description>&lt;P&gt;Hi everyone !&lt;/P&gt;

&lt;P&gt;I'm new to Splunk and I'm trying to see what can be done with it. I was wondering if it was possible, with a heavy forwarder, to forward data to different indexes depending on the value of a specific field?&lt;/P&gt;

&lt;P&gt;For example, if I have the indexes red_colored_vegetables and green_colored_vegetables, and the following data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| Id | Vegetable    | Color |
| 1  | Tomato       | Red   |
| 2  | Leek         | Green |
| 3  | Salad        | Green |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want that 1 is forwarded to the index  red_colored_vegetables and that 2 and 3 are forwarded to the index green_colored_vegetables.&lt;BR /&gt;
Is it feasible?&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Heavy-forwarder-routing-to-different-indexes-depending-on-field/m-p/337045#M62223</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2020-09-29T18:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy forwarder - routing to different indexes depending on field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Heavy-forwarder-routing-to-different-indexes-depending-on-field/m-p/337046#M62224</link>
      <description>&lt;P&gt;I think this should get you close to what you want:&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
[monitor://...]&lt;BR /&gt;
index=vegetables&lt;BR /&gt;
sourcetype=vegetables&lt;BR /&gt;
disabled=false&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[rewrite_red]&lt;BR /&gt;
DEST_KEY =_MetaData:Index&lt;BR /&gt;
REGEX = (?i)red&lt;BR /&gt;
FORMAT = red_colored_vegetables&lt;/P&gt;

&lt;P&gt;[rewrite_green]&lt;BR /&gt;
DEST_KEY =_MetaData:Index&lt;BR /&gt;
REGEX = (?i)green&lt;BR /&gt;
FORMAT = green_colored_vegetables&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[vegetables]&lt;BR /&gt;
TRANSFORMS-veggieindex = rewrite_red, rewrite_green&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Heavy-forwarder-routing-to-different-indexes-depending-on-field/m-p/337046#M62224</guid>
      <dc:creator>hortonew</dc:creator>
      <dc:date>2020-09-29T18:24:21Z</dc:date>
    </item>
  </channel>
</rss>

