<?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: Alternative ways to assigning sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46372#M8724</link>
    <description>&lt;P&gt;Sourcetypes may be set at index time via:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;setting it in inputs.conf (on the machine where the input is configured)&lt;/LI&gt;
&lt;LI&gt;setting it in a matching stanza in props.conf (only on the machine where the input is configred)&lt;/LI&gt;
&lt;LI&gt;setting it via an index-time TRANSFORM in props.conf and transforms.conf (on the machine where the parse queue executes, which is either the heavy forwarder if one is used, or the indexer)&lt;/LI&gt;
&lt;LI&gt;auto-generation if it's unspecified otherwise &lt;EM&gt;or&lt;/EM&gt; if CHECK_FOR_HEADER tells it to use CSV headers and assign a new generated sourcetype.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;A sourcetype can &lt;EM&gt;also&lt;/EM&gt; be overridden in search-time configurations with the &lt;CODE&gt;rename&lt;/CODE&gt; setting in props.conf, or with REPORT/EXTRACT extractions (all on the search head).&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2010 01:24:12 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-09-09T01:24:12Z</dc:date>
    <item>
      <title>Alternative ways to assigning sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46371#M8723</link>
      <description>&lt;P&gt;I am checking out a sample application where an eventtype's search contains "sourcetype=..." .  I having difficulty determining where this particular sourcetype gets assigned.&lt;/P&gt;

&lt;P&gt;I would typically look for an entry in inputs.conf that may explicitly set the sourcetype for a given input, however, there is no inputs.conf&lt;/P&gt;

&lt;P&gt;I do notice within props.conf there's a stanza for the sourcetype's field extractions.  Does a stanza within props.conf implicitly declare and define the sourcetype?  &lt;/P&gt;

&lt;P&gt;For the following example, does the applicability to the REPORT clause associate the event to the sourcetype?&lt;/P&gt;

&lt;P&gt;This is a working solution and I am interested in trying to understand how this works rather than alternative modifications.&lt;/P&gt;

&lt;P&gt;(I've included sample as well as actual declarations)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;=====================
eventtypes.conf
=====================
[eventtype_foo]
search = sourcetype=bar

[asa-authentication-failure]
search = sourcetype=cisco_asa "Message-Type=Authen failed"


=====================
props.conf
=====================
[bar]
REPORT-bar = bar-eventinfo

[cisco_asa]
REPORT-asa = ciscosyslog-eventinfo

=====================
transforms.conf
=====================
[bar-eventinfo]
REGEX = ^foobar-(\w+)-$
FORMAT = foobar_type::$1

[ciscosyslog-eventinfo]
REGEX = [^%]+%(\w+)-(\d)-(\d+):\s+.*
FORMAT = dvc_type::$1 log_level::$2 signature_id::$3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks, Danny&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 01:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46371#M8723</guid>
      <dc:creator>dleung</dc:creator>
      <dc:date>2010-09-09T01:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative ways to assigning sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46372#M8724</link>
      <description>&lt;P&gt;Sourcetypes may be set at index time via:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;setting it in inputs.conf (on the machine where the input is configured)&lt;/LI&gt;
&lt;LI&gt;setting it in a matching stanza in props.conf (only on the machine where the input is configred)&lt;/LI&gt;
&lt;LI&gt;setting it via an index-time TRANSFORM in props.conf and transforms.conf (on the machine where the parse queue executes, which is either the heavy forwarder if one is used, or the indexer)&lt;/LI&gt;
&lt;LI&gt;auto-generation if it's unspecified otherwise &lt;EM&gt;or&lt;/EM&gt; if CHECK_FOR_HEADER tells it to use CSV headers and assign a new generated sourcetype.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;A sourcetype can &lt;EM&gt;also&lt;/EM&gt; be overridden in search-time configurations with the &lt;CODE&gt;rename&lt;/CODE&gt; setting in props.conf, or with REPORT/EXTRACT extractions (all on the search head).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 01:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46372#M8724</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-09T01:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative ways to assigning sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46373#M8725</link>
      <description>&lt;P&gt;Do you have a cisco app installed?&lt;/P&gt;

&lt;P&gt;In general, a sourcetype can be determined by setting up a source pattern that sets the sourcetype.  in &lt;CODE&gt;props.conf&lt;/CODE&gt;.  Or it can be set explicitly by  &lt;CODE&gt;inputs.conf&lt;/CODE&gt;.   There are a few other methods, like &lt;CODE&gt;[rule::...]&lt;/CODE&gt; and &lt;CODE&gt;[delayedrule::...]&lt;/CODE&gt; and if all else fails then splunk will assign a new sourcetype which will often be the some portion of the source name; in which case you will find entries about it in your "learned" app in the &lt;CODE&gt;sourcetypes.conf&lt;/CODE&gt; file.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 01:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46373#M8725</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-09-09T01:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative ways to assigning sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46374#M8726</link>
      <description>&lt;P&gt;Hi Danny,&lt;/P&gt;

&lt;P&gt;To address some of your questions directly...&lt;/P&gt;

&lt;P&gt;"Does a stanza within props.conf implicitly declare and define the sourcetype?"
&lt;BR /&gt;--&amp;gt; The answer is No.  Just because a sourcetype is referenced by a stanza in props.conf, this does not automatically create the sourcetype and associate it with any events.&lt;/P&gt;

&lt;P&gt;"For the following example, does the applicability to the REPORT clause associate the event to the sourcetype?"
&lt;BR /&gt;--&amp;gt; The answer is also No.  REPORT signifies a search-time operation, and also does not create or associate anything to the sourcetype simply because it is referenced.&lt;/P&gt;

&lt;P&gt;Are you looking at the Splunk for Cisco Security App?  The cisco_asa sourcetype seems to be referenced in a number of places in the conf files, but I don't see that any events are ever assigned to this sourcetype.  There are some rules that reference it, but I don't believe any of the rules ever take effect since no events actually get sourcetyped as cisco_asa.  Even the sample cisco_asa.log gets sourcetypes as cisco_firewall.  Admittedly, this is confusing.&lt;/P&gt;

&lt;P&gt;The answer provided by gkanapathy covers all the cases for setting and manipulating sourcetype.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2010 12:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46374#M8726</guid>
      <dc:creator>hulahoop</dc:creator>
      <dc:date>2010-09-11T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative ways to assigning sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46375#M8727</link>
      <description>&lt;P&gt;hulahoop,&lt;/P&gt;

&lt;P&gt;The information shown is actually from the SKB-Cisco module included in ESS.  The extractions are very similar to the cisco firewall addon module.  I did a little further digging and found there were some sourcetypes set via an index-time TRANSFORM in props.conf and transforms.conf.  Thanks to gkanapathy for pointing that out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Additionally, I followed-up with the developer and found that there would also be some manual setting of sourcetypes at the configuration of the data inputs.  Thanks for the detailed help and explanation.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2010 02:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Alternative-ways-to-assigning-sourcetype/m-p/46375#M8727</guid>
      <dc:creator>dleung</dc:creator>
      <dc:date>2010-09-15T02:54:04Z</dc:date>
    </item>
  </channel>
</rss>

