<?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: Sourcetype Override in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64296#M12939</link>
    <description>&lt;P&gt;if your events can be identified via regex, you can do this: &lt;/P&gt;

&lt;P&gt;&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;

&lt;P&gt;you'll need to do this on the indexer--this won't work on the forwarder, unless it's a 'heavy forwarder'. &lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2012 19:03:53 GMT</pubDate>
    <dc:creator>piebob</dc:creator>
    <dc:date>2012-02-03T19:03:53Z</dc:date>
    <item>
      <title>Sourcetype Override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64295#M12938</link>
      <description>&lt;P&gt;Hi guys... I have a couple of script inputs that generate network status data... the issue is that a single script inputs data for multiple sourcetypes... The data itself has a filed sourcetype=$value$&lt;/P&gt;

&lt;P&gt;is there a simple way to override the default sourcetype "exec" like for host override:&lt;/P&gt;

&lt;P&gt;[sourcetype-override]&lt;BR /&gt;
REGEX = (?i)sourcetype=(\w+)&lt;BR /&gt;
FORMAT = sourcetype::$1&lt;BR /&gt;
DEST_KEY = MetaData:SourceType&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 14:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64295#M12938</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2012-02-03T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype Override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64296#M12939</link>
      <description>&lt;P&gt;if your events can be identified via regex, you can do this: &lt;/P&gt;

&lt;P&gt;&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;

&lt;P&gt;you'll need to do this on the indexer--this won't work on the forwarder, unless it's a 'heavy forwarder'. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 19:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64296#M12939</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2012-02-03T19:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype Override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64297#M12940</link>
      <description>&lt;P&gt;thnx. i'we seen the guide but this will not work in this case... the examples in the guide match a regex and then based on that match set the source type manually...&lt;/P&gt;

&lt;P&gt;[some_stanza]&lt;BR /&gt;
REGEX = some_regex&lt;BR /&gt;
FORMAT = sourcetype::my_log (manually set source type to my_log)&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;This would require a stanza in props.conf for every source type i wish to have for a single scripted input source...&lt;/P&gt;

&lt;P&gt;what i am trying is to extract the source type itself using a regex and route those events to that source type...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-Override/m-p/64297#M12940</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2020-09-28T10:23:29Z</dc:date>
    </item>
  </channel>
</rss>

