<?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: Source or Sourcetype override in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655451#M111059</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;sourcetype defining your log file schema. For that reason it must be different for different log files/log event types. Here is one excellent description for it by Mark McCullough (Splunk Slack #bestpractices)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--8&amp;lt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I've finally figured out how to explain to "I know Splunk!" types what the sourcetype field means in a way that doesn't cause them to want to pick&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;_json&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for everything that uses&amp;nbsp; JSON syntax:&amp;nbsp; "It's like a reference to a XSD file for XML.&amp;nbsp; It specifies what fields are required, what fields are permitted, and the overall structure of the event."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--8&amp;lt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;There is also some naming standards for KO in Splunk which helps you to manage all these KOs. In most cases I'm using naming &lt;/FONT&gt;schema&lt;FONT face="inherit"&gt;&amp;nbsp;"owner:system/vendor:app:subsystem:log file:#" There is no need to keep all those, but &lt;/FONT&gt;usually&lt;FONT face="inherit"&gt;&amp;nbsp;it has at least three of those and number as a suffix. When the format of log changed later I just increment last &lt;/FONT&gt;digit&lt;FONT face="inherit"&gt;&amp;nbsp;by one.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;In most times when you have Splunk system where are even &lt;/FONT&gt;couple&lt;FONT face="inherit"&gt;&amp;nbsp;of different business / tech systems you should use this kind of naming standard for all your KO like apps, indexes, saved searches, alerts etc. This will help you and at least it helps your splunk admins.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;r. Ismo&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 07:33:45 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-08-24T07:33:45Z</dc:date>
    <item>
      <title>Source or Sourcetype override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655400#M111047</link>
      <description>&lt;P&gt;I have sourcetype based definition in which I mentioned INDEXED_EXTRACTION=JSON. Under this sourcetype there are 10 sources configured. Out of 10, let us say one is not in JSON format. So how to use same sourcetype but no need to mentioned INDEXED_EXTRACTION=JSON for that particular source alone? I thought of using source:: based extraction in props with other attributes and not mentioning this INDEXED_EXTRACTION attribute. In that case will it be considered from the sourcetype declaration?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 19:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655400#M111047</guid>
      <dc:creator>nags</dc:creator>
      <dc:date>2023-08-23T19:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Source or Sourcetype override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655439#M111054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259215"&gt;@nags&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it isn't possible: sourcetype defines the specification of a data source (one of them is INDEXED_EXTRACTIONS) so you cannot use the same data definition for different data sources.&lt;/P&gt;&lt;P&gt;As a workaround, you could use a similar sourcetype (e.g. my_sourcetype and my_sourcetype_json) so in the searches you can use:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=my_sourcetype*&lt;/LI-CODE&gt;&lt;P&gt;and take both of them.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655439#M111054</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-24T06:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Source or Sourcetype override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655442#M111057</link>
      <description>&lt;P&gt;I'm not 100% sure what you want. As you can see in the docs (&lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Propsconf&lt;/A&gt;), you can define settings based on sourcetype, source or host so that some of the settings can be selectively applied to your sources.&lt;/P&gt;&lt;P&gt;But the main question here is - why do you want to have INDEXED_EXTRACTIONS (there is "S" at the end, it's important!). INDEXED_EXTRACTIONS are sometimes inevitable (if the log file has variable order of columns and the field order is determined by the header row, it's the only way to reasonably ingest such file) but often search-time parsing is enough and generally with Splunk search-time operations are the preferred method. So why not KV_MODE=json instead of INDEXED_EXTRACTIONS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655442#M111057</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-08-24T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Source or Sourcetype override</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655451#M111059</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;sourcetype defining your log file schema. For that reason it must be different for different log files/log event types. Here is one excellent description for it by Mark McCullough (Splunk Slack #bestpractices)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--8&amp;lt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I've finally figured out how to explain to "I know Splunk!" types what the sourcetype field means in a way that doesn't cause them to want to pick&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;_json&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for everything that uses&amp;nbsp; JSON syntax:&amp;nbsp; "It's like a reference to a XSD file for XML.&amp;nbsp; It specifies what fields are required, what fields are permitted, and the overall structure of the event."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--8&amp;lt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;There is also some naming standards for KO in Splunk which helps you to manage all these KOs. In most cases I'm using naming &lt;/FONT&gt;schema&lt;FONT face="inherit"&gt;&amp;nbsp;"owner:system/vendor:app:subsystem:log file:#" There is no need to keep all those, but &lt;/FONT&gt;usually&lt;FONT face="inherit"&gt;&amp;nbsp;it has at least three of those and number as a suffix. When the format of log changed later I just increment last &lt;/FONT&gt;digit&lt;FONT face="inherit"&gt;&amp;nbsp;by one.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;In most times when you have Splunk system where are even &lt;/FONT&gt;couple&lt;FONT face="inherit"&gt;&amp;nbsp;of different business / tech systems you should use this kind of naming standard for all your KO like apps, indexes, saved searches, alerts etc. This will help you and at least it helps your splunk admins.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;r. Ismo&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 07:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Source-or-Sourcetype-override/m-p/655451#M111059</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-08-24T07:33:45Z</dc:date>
    </item>
  </channel>
</rss>

