<?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: Route syslog data to specific index by host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75349#M181345</link>
    <description>&lt;P&gt;what else could the event data have for 'host' [if not the ip] and where could i find this info? thx&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2011 17:52:57 GMT</pubDate>
    <dc:creator>joshrabinowitz</dc:creator>
    <dc:date>2011-09-14T17:52:57Z</dc:date>
    <item>
      <title>Route syslog data to specific index by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75346#M181342</link>
      <description>&lt;P&gt;Tried suggestions from other Q/A, but alas. Trying to route syslog data from one host to an index other than main. the host is a netapp filer and there is no option to install a forwarder, so it's just sending data on 514. single indexer/search head, target index is setup and named 'netapp'&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::host1.fqdn]
TRANSFORMS-movetonetappindex = netappindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[netappindex]
REGEX = .*
DEST_KEY = _MetaData:Index
FORMAT = netapp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Running 4.2.1, build 98164 on rhel5_5 2.6.18-238.12.1.el5&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75346#M181342</guid>
      <dc:creator>joshrabinowitz</dc:creator>
      <dc:date>2011-09-14T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Route syslog data to specific index by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75347#M181343</link>
      <description>&lt;P&gt;It's possible that your &lt;CODE&gt;host&lt;/CODE&gt; value is not in fact &lt;CODE&gt;host.fqdn&lt;/CODE&gt;. If your sourcetype is &lt;CODE&gt;syslog&lt;/CODE&gt;, Splunk applies a transform that modifies the host according to what's in the event data. But the selection of rules from props.conf is applied based on the *un*transformed host, so it may be the IP address, or something. &lt;/P&gt;

&lt;P&gt;This is much easier to deal with if you receive the data using syslog or syslog-ng or rsyslog, write it to a set of files split out by hostname, and then have Splunk monitor those files, using the &lt;CODE&gt;host_segment&lt;/CODE&gt; or &lt;CODE&gt;host_regex&lt;/CODE&gt; to set the host name.&lt;/P&gt;

&lt;P&gt;Also (and this isn't why it's failing), don't use &lt;CODE&gt;.*&lt;/CODE&gt; as your matching regex. There's no need to match up against the entire string. Simply &lt;CODE&gt;.&lt;/CODE&gt; or &lt;CODE&gt;(?=)&lt;/CODE&gt; will work fine.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75347#M181343</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2020-09-28T09:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Route syslog data to specific index by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75348#M181344</link>
      <description>&lt;P&gt;tried using the ip instead of hostname, same result. should also point out that syslog comes in on 514, then iptables routes it to 9514 and splunk has a UDP input on 9514.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2011 16:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75348#M181344</guid>
      <dc:creator>joshrabinowitz</dc:creator>
      <dc:date>2011-09-14T16:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Route syslog data to specific index by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75349#M181345</link>
      <description>&lt;P&gt;what else could the event data have for 'host' [if not the ip] and where could i find this info? thx&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2011 17:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Route-syslog-data-to-specific-index-by-host/m-p/75349#M181345</guid>
      <dc:creator>joshrabinowitz</dc:creator>
      <dc:date>2011-09-14T17:52:57Z</dc:date>
    </item>
  </channel>
</rss>

