<?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: Getting different sourcetypes from the same source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752805#M119511</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308546"&gt;@Na_Kang_Lim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firsly, your /var/log/nginx is specifically targeting access.log (nothing else), you need to update this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/nginx]
whitelist = (^access\.log*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;You should probably also exclude this from the first monitor stanza too:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log]
whitelist = (\.log|log$|messages|secure|auth|mesg$|cron$|acpid$|\.out)
blacklist = (lastlog|anaconda\.syslog|access\.log*)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 15:07:22 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-09-08T15:07:22Z</dc:date>
    <item>
      <title>Getting different sourcetypes from the same source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752797#M119508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am configure the apps on the UF from a Deploy Server, and get this weird behavior:&lt;/P&gt;&lt;P&gt;What I am trying to do is assigning the sourcetype "nginx:access" for every file that have this path "/var/log/nginx/access.log*"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log]
whitelist = (\.log|log$|messages|secure|auth|mesg$|cron$|acpid$|\.out)
blacklist = (lastlog|anaconda\.syslog)
disabled = 0

[monitor:///var/log/nginx]
whitelist = (^access\.log)
sourcetype = nginx:access
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;However, upon deploying the apps, I see that there are still numerous weird sourcetypes assigning to the source "/var/log/nginx/access.log".&lt;/P&gt;&lt;P&gt;For example, when running&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats values(sourcetype) where index=*_linux source=/var/log/nginx/access.log by source&lt;/LI-CODE&gt;&lt;P&gt;I got:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;access-100
access-13
access-204
access-29
access-66
access-7
access-too_small
access.log-16
access.log-4
access.log-85
access_combined
access_combined_wcookie
nginx:access&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How do I troubleshoot/fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 09:35:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752797#M119508</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-09-08T09:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting different sourcetypes from the same source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752798#M119509</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308546"&gt;@Na_Kang_Lim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your first blacklist modify with below,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist = (lastlog|anaconda\.syslog|nginx/access\.log)&lt;/LI-CODE&gt;&lt;P&gt;And for your second monitor, use direct path.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/nginx/access.log]
sourcetype = nginx:access
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 09:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752798#M119509</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-09-08T09:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting different sourcetypes from the same source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752805#M119511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308546"&gt;@Na_Kang_Lim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firsly, your /var/log/nginx is specifically targeting access.log (nothing else), you need to update this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/nginx]
whitelist = (^access\.log*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;You should probably also exclude this from the first monitor stanza too:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log]
whitelist = (\.log|log$|messages|secure|auth|mesg$|cron$|acpid$|\.out)
blacklist = (lastlog|anaconda\.syslog|access\.log*)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 15:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752805#M119511</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-09-08T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting different sourcetypes from the same source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752818#M119514</link>
      <description>&lt;P&gt;Splunk can behave weirdly when you monitor two paths of which one includes the other. For sure there is no automatic exclusion of the "narrower" path from the "wider" one but the overall behaviour can be a bit unpredictable. You can see the effective applied "config" with&lt;/P&gt;&lt;PRE&gt;splunk list monitor&lt;/PRE&gt;&lt;P&gt;So the overall best practice is when the paths listed in monitor stanzas don't overlap. If you need to specify separate sourcetypes for different files in a single directory you can use so-called sourcetyper configuration.&lt;/P&gt;&lt;P&gt;Specify the default sourcetype in inputs.conf&lt;/P&gt;&lt;PRE&gt;[monitor:///var/log/]&lt;BR /&gt;sourcetype=whatever&lt;/PRE&gt;&lt;P&gt;But add overrides in props.conf for specific files&lt;/P&gt;&lt;PRE&gt;[source:///var/log/nginx/*]&lt;BR /&gt;sourcetype=something_else&lt;/PRE&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://help.splunk.com/en/splunk-enterprise/get-started/get-data-in/9.4/configure-source-types/override-automatic-source-type-assignment" target="_blank"&gt;https://help.splunk.com/en/splunk-enterprise/get-started/get-data-in/9.4/configure-source-types/override-automatic-source-type-assignment&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 18:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-different-sourcetypes-from-the-same-source/m-p/752818#M119514</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-09-08T18:54:41Z</dc:date>
    </item>
  </channel>
</rss>

