<?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: Split syslog input into multiple indexes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81413#M16801</link>
    <description>&lt;P&gt;Is this sill working if in inputs.conf an index is defined?&lt;BR /&gt;
Let's say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = main
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Apr 2017 06:35:39 GMT</pubDate>
    <dc:creator>zugji</dc:creator>
    <dc:date>2017-04-18T06:35:39Z</dc:date>
    <item>
      <title>Split syslog input into multiple indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81410#M16798</link>
      <description>&lt;P&gt;I'm trying to split messages that come into splunk via UDP:514 (single input, single sourcetype) into multiple indexes based on a regex that should be applied to the _raw message.&lt;/P&gt;

&lt;P&gt;I've tried several suggestions i've found in splunk-base but nothing seems to work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;My current configuration looks like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp://8514]
connection_host = ip
sourcetype = syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORMS-index=route-to-index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[route-to-index]
REGEX = ^&amp;lt;\d+&amp;gt;(app|pubsub|updater)(?:\[(\d+)\])?:\s
FORMAT = index::myindex
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The inputs.conf is in etc/system/local/inputs.conf, props and transforms are in a custom app.&lt;/P&gt;

&lt;P&gt;The goal is to filter based on the process name for now. The regex definitely matches the messages, but nothing appears in myindex.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 10:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81410#M16798</guid>
      <dc:creator>hollow</dc:creator>
      <dc:date>2012-10-05T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Split syslog input into multiple indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81411#M16799</link>
      <description>&lt;P&gt;You're pretty close. In your &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[route-to-index]
REGEX = ^&amp;lt;\d+&amp;gt;(app|pubsub|updater)(?:\[(\d+)\])?:\s
FORMAT = myindex
DEST_KEY = _MetaData:Index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should do the trick.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 14:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81411#M16799</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-10-08T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split syslog input into multiple indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81412#M16800</link>
      <description>&lt;P&gt;i could swear that i also had this variant in my configs before. but it seems to work now, thanks a lot! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 07:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81412#M16800</guid>
      <dc:creator>hollow</dc:creator>
      <dc:date>2012-10-29T07:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split syslog input into multiple indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81413#M16801</link>
      <description>&lt;P&gt;Is this sill working if in inputs.conf an index is defined?&lt;BR /&gt;
Let's say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = main
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 06:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-syslog-input-into-multiple-indexes/m-p/81413#M16801</guid>
      <dc:creator>zugji</dc:creator>
      <dc:date>2017-04-18T06:35:39Z</dc:date>
    </item>
  </channel>
</rss>

