<?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 direct incoming data from heavy forwarder to index by host name? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267412#M51202</link>
    <description>&lt;P&gt;The configuration looks correct (for moving data from host1 to Infrastructure index).&lt;BR /&gt;
Yes, you would need to restart your HF after making this change.&lt;BR /&gt;
You can re-use the entry in transforms.conf for each host that you need to more to same index.&lt;BR /&gt;
You need to define separate transforms.conf stanza for each index.&lt;BR /&gt;
It'll work for any type of data coming to HF (from UF OR syslog).&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 15:23:52 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-08T15:23:52Z</dc:date>
    <item>
      <title>How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267407#M51197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data coming in from multiple hosts using either syslog, or a universal forwarder, going into 3 heavy forwarders, and then forwarding to SplunkCloud.&lt;/P&gt;

&lt;P&gt;I've created 3 indexes - Financial, Infrastructure, and Security - and I would like to separate the data by host name&lt;/P&gt;

&lt;P&gt;So I want data from "financial_server1" to go to the "financial" index, and data from "Firewall_1" to go to the "Security" index.&lt;/P&gt;

&lt;P&gt;Can someone give me an example of how this would be done?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267407#M51197</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2020-09-29T10:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267408#M51198</link>
      <description>&lt;P&gt;Are the items that you want to separate the data by available in the data? That is, are the hostnames in the eventdata itself?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 16:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267408#M51198</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2016-09-07T16:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267409#M51199</link>
      <description>&lt;P&gt;Yes! Splunk recognizes and sets the host for each device.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 17:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267409#M51199</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2016-09-07T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267410#M51200</link>
      <description>&lt;P&gt;This is how you can override the index name based on a sourcetype (sourcetype used here is "mysourcetype"). You can configure this based on host name as well by replacing "mysourcetype" in props.conf with "host::YourHostName".&lt;BR /&gt;
On your indexer or heavy forwarder: &lt;BR /&gt;
  etc/system/local/transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [overrideindex]
 DEST_KEY =_MetaData:Index
 REGEX = .
 FORMAT = my_new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc/system/local/props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [mysourcetype]
 TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Sep 2016 17:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267410#M51200</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-07T17:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267411#M51201</link>
      <description>&lt;P&gt;Ok Cool.&lt;/P&gt;

&lt;P&gt;So if I wanted "host1" to go to index "Infrastructure" I would do&lt;/P&gt;

&lt;P&gt;Transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[overrideindex]
DEST_KEY=_MetaData:index
REGEX = .
FORMAT = Infrastructure
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::host1]
TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Correct?&lt;/P&gt;

&lt;P&gt;Do I need to restart splunk after making this change? Will I need to do seperate entries for each host, or is there a way where I can enter all the applicable hosts in the same [host::***] line?&lt;/P&gt;

&lt;P&gt;Since I have multiple indexes, in transforms would I put for example [overrideindex] [overrideindex1] [overrideindex2]?&lt;/P&gt;

&lt;P&gt;Also does this also work for wineventlog data?&lt;/P&gt;

&lt;P&gt;Thanks a lot! I really appreciate the help.&lt;/P&gt;

&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267411#M51201</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2016-09-08T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267412#M51202</link>
      <description>&lt;P&gt;The configuration looks correct (for moving data from host1 to Infrastructure index).&lt;BR /&gt;
Yes, you would need to restart your HF after making this change.&lt;BR /&gt;
You can re-use the entry in transforms.conf for each host that you need to more to same index.&lt;BR /&gt;
You need to define separate transforms.conf stanza for each index.&lt;BR /&gt;
It'll work for any type of data coming to HF (from UF OR syslog).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 15:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267412#M51202</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-08T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267413#M51203</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;So I made the following changes in the etc/system/local on all 3 heavy forwarders, I then ran on all 3 heavy forwarders:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| extract reload=T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This had no effect so I then restarted each one and still there was no change.&lt;/P&gt;

&lt;P&gt;The heavy forwarders are feeding into SplunkCloud. The security index exists on splunk cloud. does it need to be on the heavy forwarders as well?&lt;/P&gt;

&lt;P&gt;What am I doing wrong? Should this not be sending events from xx.xx.x.xx to index "security" in SplunkCloud?&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[redirect_to_security]
DEST_KEY = _MetaData:Index
Regex = .
FORMAT = security
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::xx\.xx\.x\.xx]
TRANSFORMS-index = redirect_to_security
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267413#M51203</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2016-09-12T16:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267414#M51204</link>
      <description>&lt;P&gt;It should. You would need to restart Splunk services on Heavy forwarder for these changes to take effect (&lt;CODE&gt;bin/splunk restart&lt;/CODE&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267414#M51204</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-12T16:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct incoming data from heavy forwarder to index by host name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267415#M51205</link>
      <description>&lt;P&gt;So strange. I restarted all the heavy forwarders and still have the same result. There's nothing special that needs to be done since it is forwarding to SplunkCloud?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-direct-incoming-data-from-heavy-forwarder-to-index-by/m-p/267415#M51205</guid>
      <dc:creator>jgorman_THG</dc:creator>
      <dc:date>2016-09-12T17:33:38Z</dc:date>
    </item>
  </channel>
</rss>

