<?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: Combine Multiple Source Types with Rename Function in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70603#M14367</link>
    <description>&lt;P&gt;This works for newly collected data, though old data needs to be re-indexed to match the sourcetype.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2012 13:34:20 GMT</pubDate>
    <dc:creator>stevenpall</dc:creator>
    <dc:date>2012-10-18T13:34:20Z</dc:date>
    <item>
      <title>Combine Multiple Source Types with Rename Function</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70601#M14365</link>
      <description>&lt;P&gt;I have a number of duplicate source types with names like "access-1", "access-2", etc. I would like to combine these into one source type ("access", for example) using the rename function in the props.conf file. &lt;/P&gt;

&lt;P&gt;I've successfully been able to do this with single source types (changing "access-1" to "access", for example), however when I try to make multiple entries with the same source type as seen below, Splunk creates separate source types called "access".&lt;/P&gt;

&lt;P&gt;[access-1]&lt;BR /&gt;
rename=access&lt;/P&gt;

&lt;P&gt;[access-2]&lt;BR /&gt;
rename=access&lt;/P&gt;

&lt;P&gt;According to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/TagAndAliasFieldValues#Rename_source_types"&gt;this&lt;/A&gt; page, "multiple source types can share the same name", so I believe what I want to do should be possible. Would I need to use regular expressions in a single rename statement to get this working? Is there some other way to do this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2012 18:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70601#M14365</guid>
      <dc:creator>stevenpall</dc:creator>
      <dc:date>2012-09-25T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Source Types with Rename Function</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70602#M14366</link>
      <description>&lt;P&gt;Try using a wildcard match on source to rename:&lt;/P&gt;

&lt;P&gt;[source::...access*.log]&lt;BR /&gt;
sourcetype = access&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 12:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70602#M14366</guid>
      <dc:creator>sblake_splunk</dc:creator>
      <dc:date>2012-09-26T12:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Source Types with Rename Function</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70603#M14367</link>
      <description>&lt;P&gt;This works for newly collected data, though old data needs to be re-indexed to match the sourcetype.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 13:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70603#M14367</guid>
      <dc:creator>stevenpall</dc:creator>
      <dc:date>2012-10-18T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Source Types with Rename Function</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70604#M14368</link>
      <description>&lt;P&gt;What file is this added to?&lt;/P&gt;

&lt;P&gt;And how can I re-index things this would affect?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Dec 2012 14:58:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70604#M14368</guid>
      <dc:creator>timhavens</dc:creator>
      <dc:date>2012-12-30T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Source Types with Rename Function</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70605#M14369</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;Reindexing is more complex.  You would have to remove the old and then reindex it all to set the sourcetype at index time properly.  You can set the sourcetype on index time with a setting in inputs.conf for the monitor stanza (the easiest method) or you can get a little more complex with doing event inspection and overriding it before index time: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Dec 2012 15:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-Multiple-Source-Types-with-Rename-Function/m-p/70605#M14369</guid>
      <dc:creator>sblake_splunk</dc:creator>
      <dc:date>2012-12-30T15:18:03Z</dc:date>
    </item>
  </channel>
</rss>

