<?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: Direct to an index based on _raw in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Direct-to-an-index-based-on-raw/m-p/240565#M46753</link>
    <description>&lt;P&gt;Restarted Splunk and problem went away. Not sure what was up there, but it's working now. &lt;/P&gt;</description>
    <pubDate>Sat, 26 Sep 2015 10:28:50 GMT</pubDate>
    <dc:creator>daniel333</dc:creator>
    <dc:date>2015-09-26T10:28:50Z</dc:date>
    <item>
      <title>Direct to an index based on _raw</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Direct-to-an-index-based-on-raw/m-p/240564#M46752</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I am looking to route data to an index based on contents of the _raw. &lt;/P&gt;

&lt;P&gt;Basically I have app that runs every so often and logs to /var/log/message on a Linux system. If i see "arpwatch" in the text I want the event to end up in index=arpwatch. &lt;/P&gt;

&lt;P&gt;Assuming I don't want to mess with the logging facilities at this time to create another log file. Is this something Splunk can do? &lt;/P&gt;

&lt;P&gt;Here is what I have so far on my all in one box. It sorta works, but I am getting the hostname AND index overwritten to be arpwatch rather than just the index.  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[syslog]&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^&lt;BR /&gt;
TRANSFORMS-indexrouting = arpwatch&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[arpwatch]&lt;BR /&gt;
 REGEX = (?i) .&lt;EM&gt;app=arpwatch.&lt;/EM&gt;&lt;BR /&gt;
 DEST_KEY = _MetaData:Index&lt;BR /&gt;
 FORMAT = arpwatch&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Direct-to-an-index-based-on-raw/m-p/240564#M46752</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2020-09-29T07:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Direct to an index based on _raw</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Direct-to-an-index-based-on-raw/m-p/240565#M46753</link>
      <description>&lt;P&gt;Restarted Splunk and problem went away. Not sure what was up there, but it's working now. &lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 10:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Direct-to-an-index-based-on-raw/m-p/240565#M46753</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2015-09-26T10:28:50Z</dc:date>
    </item>
  </channel>
</rss>

