<?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 over ride the index for event from certain hosts? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508103#M86465</link>
    <description>&lt;P&gt;yes, I always restart after a wq of the conf.&lt;/P&gt;&lt;P&gt;This is weird I don't see anything abnormal with btool.&lt;/P&gt;&lt;P&gt;I am wondering if there is something funky with the logs the HF receives, like its not seeing the host field but I know the the name and/or ip is in the raw event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 14:11:56 GMT</pubDate>
    <dc:creator>Glasses</dc:creator>
    <dc:date>2020-07-08T14:11:56Z</dc:date>
    <item>
      <title>How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/507934#M86443</link>
      <description>&lt;P&gt;Its been awhile since I setup an props/transforms override, but I never had so much trouble.&lt;/P&gt;&lt;P&gt;I have 20 Foo-appliances sending data to a TCP Listener (unique high port) on an HF version 7.3.3.&lt;/P&gt;&lt;P&gt;The inputs.conf for this data is in &amp;gt; /opt/splunk/etc/apps/search/local&lt;/P&gt;&lt;P&gt;[tcp://12345]&lt;/P&gt;&lt;P&gt;connection_host = dns&lt;BR /&gt;index = foo&lt;BR /&gt;sourcetype = foo_log&lt;/P&gt;&lt;P&gt;I have 2 Foo-appliances that are sending a different format to the same HF TCP port and I want to send those to a different index=bar sourcetype=bar_log.&lt;/P&gt;&lt;P&gt;host 1 = abcd-1234-efgh-blahblah.com&lt;/P&gt;&lt;P&gt;host 2 = zyxw-9876-ghyh-blahblah.com&lt;/P&gt;&lt;P&gt;I have tried a number of combinations of props and transforms with no luck.&lt;/P&gt;&lt;P&gt;The HF does not index the data, just forwards the data to the indexers.&lt;/P&gt;&lt;P&gt;Please advise which directory to create an override stanza in the props and transforms, .../system/local or .../search/local&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I tried and had no luck...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample props.conf&lt;/P&gt;&lt;P&gt;[source::tcp:12345]&lt;/P&gt;&lt;P&gt;Transforms-OverRide-Foo-index = OverRide-Foo&lt;/P&gt;&lt;P&gt;Transforms-OverRide-Foo-sourcetype = OverRide-Foo_log&lt;/P&gt;&lt;P&gt;Sample transforms.conf&lt;/P&gt;&lt;P&gt;[OverRide-Foo]&lt;/P&gt;&lt;P&gt;REGEX = (abcd* | zyxw* )&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DEST_KEY = _MetaData:Index&lt;/P&gt;&lt;P&gt;FORMAT = bar&lt;/P&gt;&lt;P&gt;[OverRide-Foo_Log]&lt;/P&gt;&lt;P&gt;REGEX = (abcd* | zyxw*)&lt;/P&gt;&lt;P&gt;DEST_KEY = MetaData:Sourcetype&lt;/P&gt;&lt;P&gt;FORMAT = bar_log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at a lot of the examples but I must be misunderstanding.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 22:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/507934#M86443</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2020-07-07T22:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/507946#M86444</link>
      <description>&lt;P&gt;If the distinguishing characteristic is the host field then REGEX will not find it as it looks at _raw.&amp;nbsp; Try putting this in props.conf on the HF:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::abcd-1234-efgh-blahblah.com]
Transforms-OverRide-Foo-index = OverRide-Foo
Transforms-OverRide-Foo-sourcetype = OverRide-Foo_log

[host::zyxw-9876-ghyh-blahblah.com]
Transforms-OverRide-Foo-index = OverRide-Foo
Transforms-OverRide-Foo-sourcetype = OverRide-Foo_log&lt;/LI-CODE&gt;&lt;P&gt;Then transforms.conf becomes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[OverRide-Foo]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = bar

[OverRide-Foo_Log]
REGEX = .
DEST_KEY = MetaData:Sourcetype
FORMAT = bar_log&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 00:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/507946#M86444</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-08T00:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508089#M86460</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I followed your instructions, but it did not work...&lt;/P&gt;&lt;P&gt;I don't have any conflicts in .../system/local, and I made the change in .../etc/apps/search/local&amp;nbsp; &amp;lt; where the input was created.&amp;nbsp; Should I move it to ...system/local?&lt;/P&gt;&lt;P&gt;I believe your config is correct, but something must be conflicting or the HF does not see the Host =abcd-1234-efgh-blahblah.com&lt;/P&gt;&lt;P&gt;in the _raw log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing the host to the IP and still no luck.&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;I will keep looking for conflicts as there is so much old tangled garbage everywhere in this deployment.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508089#M86460</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2020-07-08T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508093#M86462</link>
      <description>&lt;P&gt;is there another way to write the props / transforms to look at the tcp source and regex _raw , for the hostname or IP , like&amp;nbsp;&lt;/P&gt;&lt;P&gt;Props.conf&lt;/P&gt;&lt;P&gt;[source::tcp:12345]&lt;BR /&gt;Transforms-OverRide-Foo-index = OverRide-Foo&lt;BR /&gt;Transforms-OverRide-Foo-sourcetype = OverRide-Foo_log&lt;/P&gt;&lt;P&gt;transforms.conf&lt;BR /&gt;[OverRide-Foo]&lt;BR /&gt;REGEX = (abcd* | 1.2.3.4 )&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;FORMAT = bar&lt;/P&gt;&lt;P&gt;[OverRide-Foo_Log]&lt;BR /&gt;REGEX = (abcd* | 1.2.3.4 )&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = bar_log&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508093#M86462</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2020-07-08T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508096#M86463</link>
      <description>&lt;P&gt;There's no need to move the configuration to etc/system/local.&lt;/P&gt;&lt;P&gt;You installed the config files on the HF and then restarted the HF, right?&lt;/P&gt;&lt;P&gt;The value following &lt;FONT face="courier new,courier"&gt;host::&lt;/FONT&gt; should be whatever appears in the host field when you search for events from that server.&lt;/P&gt;&lt;P&gt;btool can help you figure out where configurations are being set.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk btool --debug inputs list | more&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508096#M86463</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-08T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508103#M86465</link>
      <description>&lt;P&gt;yes, I always restart after a wq of the conf.&lt;/P&gt;&lt;P&gt;This is weird I don't see anything abnormal with btool.&lt;/P&gt;&lt;P&gt;I am wondering if there is something funky with the logs the HF receives, like its not seeing the host field but I know the the name and/or ip is in the raw event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 14:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508103#M86465</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2020-07-08T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508106#M86466</link>
      <description>&lt;P&gt;Try adding this to your transforms.conf stanzas&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SOURCE_KEY = metadata:host&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 14:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508106#M86466</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-08T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508109#M86467</link>
      <description>&lt;P&gt;still no luck with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SOURCE_KEY = MetaData:Host&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 14:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/508109#M86467</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2020-07-08T14:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to over ride the index for event from certain hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/510235#M86742</link>
      <description>&lt;P&gt;FYI - here is what worked. Evidently I had a syntax error...&lt;/P&gt;&lt;P&gt;inputs.conf&lt;/P&gt;&lt;P&gt;[tcp://12345]&lt;/P&gt;&lt;P&gt;connection_host = dns&lt;BR /&gt;index = foo&lt;BR /&gt;sourcetype = foo_log&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;TRANSFORMS-1_extract_hostname = foo_host&lt;BR /&gt;TRANSFORMS-2_overide_foo_index = foo_index_override&lt;BR /&gt;TRANSFORMS-3_overide_foo_sourcetype = foo_sourcetype_override&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[foo_host]&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;&lt;P&gt;[foo_index_override]&lt;BR /&gt;SOURCE_KEY = MetaData:Host&lt;BR /&gt;REGEX = host::abc123.+&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;FORMAT = bar&lt;/P&gt;&lt;P&gt;[foo_sourcetype_override]&lt;BR /&gt;SOURCE_KEY = MetaData:Host&lt;BR /&gt;REGEX = host::abc123.+&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = sourcetype::bar_logs&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 13:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-over-ride-the-index-for-event-from-certain-hosts/m-p/510235#M86742</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2020-07-21T13:27:18Z</dc:date>
    </item>
  </channel>
</rss>

