<?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 split events in a syslog file to separate index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-in-a-syslog-file-to-separate-index/m-p/38460#M7091</link>
    <description>&lt;P&gt;It would be ideal to send the syslog data straight to Splunk, and setup a separate port for the for the handful of hosts -- since you can specify an Index when defining the data input.&lt;/P&gt;

&lt;P&gt;Otherwise, you could use a RegEx to identify the data you want to move, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PROPS.CONF:
[source::...mysyslogfile...]
TRANSFORMS-movestuff = xf_index

TRANSFORMS.CONF:
[xf_index]
REGEX = matchthis
DEST_KEY = _MetaData:Index
FORMAT = thisindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use FORMAT to specify the index name.  Don't forget to create your index, first.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2011 05:03:05 GMT</pubDate>
    <dc:creator>Ron_Naken</dc:creator>
    <dc:date>2011-02-04T05:03:05Z</dc:date>
    <item>
      <title>How to split events in a syslog file to separate index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-in-a-syslog-file-to-separate-index/m-p/38459#M7090</link>
      <description>&lt;P&gt;I have a simple syslog server that collects data from many hosts and splunk is indexing the syslog logfile.  I would like to separate data from a handful of hosts into a separate index at index time.  What would be the best way to go about this?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 04:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-in-a-syslog-file-to-separate-index/m-p/38459#M7090</guid>
      <dc:creator>wczimmerman</dc:creator>
      <dc:date>2011-02-04T04:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to split events in a syslog file to separate index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-in-a-syslog-file-to-separate-index/m-p/38460#M7091</link>
      <description>&lt;P&gt;It would be ideal to send the syslog data straight to Splunk, and setup a separate port for the for the handful of hosts -- since you can specify an Index when defining the data input.&lt;/P&gt;

&lt;P&gt;Otherwise, you could use a RegEx to identify the data you want to move, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PROPS.CONF:
[source::...mysyslogfile...]
TRANSFORMS-movestuff = xf_index

TRANSFORMS.CONF:
[xf_index]
REGEX = matchthis
DEST_KEY = _MetaData:Index
FORMAT = thisindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use FORMAT to specify the index name.  Don't forget to create your index, first.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 05:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-in-a-syslog-file-to-separate-index/m-p/38460#M7091</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-04T05:03:05Z</dc:date>
    </item>
  </channel>
</rss>

