<?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 How to remove logs from specific sourcetype being indexed? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630720#M108103</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;Im trying to stop the following index from being indexed into Splunk using the props/transforms confs&amp;nbsp; on HF but with no luck - What am i doing wrong here ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;props.conf&lt;/P&gt;
&lt;P&gt;[pan:userid]&lt;BR /&gt;TRANSFORMS-set-nullqueue=set_nullqueue&lt;/P&gt;
&lt;P&gt;transforms.conf&lt;/P&gt;
&lt;P&gt;[set_nullqueue]&lt;BR /&gt;REGEX=.&lt;BR /&gt;DEST_KEY=queue&lt;BR /&gt;FORMAT=nullQueue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 23:28:10 GMT</pubDate>
    <dc:creator>newsplunker1</dc:creator>
    <dc:date>2023-02-13T23:28:10Z</dc:date>
    <item>
      <title>How to remove logs from specific sourcetype being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630720#M108103</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;Im trying to stop the following index from being indexed into Splunk using the props/transforms confs&amp;nbsp; on HF but with no luck - What am i doing wrong here ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;props.conf&lt;/P&gt;
&lt;P&gt;[pan:userid]&lt;BR /&gt;TRANSFORMS-set-nullqueue=set_nullqueue&lt;/P&gt;
&lt;P&gt;transforms.conf&lt;/P&gt;
&lt;P&gt;[set_nullqueue]&lt;BR /&gt;REGEX=.&lt;BR /&gt;DEST_KEY=queue&lt;BR /&gt;FORMAT=nullQueue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 23:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630720#M108103</guid>
      <dc:creator>newsplunker1</dc:creator>
      <dc:date>2023-02-13T23:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logs from specific sourcetype being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630721#M108104</link>
      <description>&lt;P&gt;Sorry I meant sourcetype NOT index&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 22:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630721#M108104</guid>
      <dc:creator>newsplunker1</dc:creator>
      <dc:date>2023-02-13T22:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logs from specific sourcetype being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630748#M108108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/38226"&gt;@newsplunker1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;using this configuration, you discard all logs with that sourcetype, so the question is: why don't you disable the related input instead log filtering after input?&lt;/P&gt;&lt;P&gt;the solution you describe is useful to discard selected logs not all logs.&lt;/P&gt;&lt;P&gt;To discard all logs from a predefined sourcetype it's easier to disable input for that sourcetype.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 08:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630748#M108108</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-14T08:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove logs from specific sourcetype being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630754#M108112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/38226"&gt;@newsplunker1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Palo Alto TA uses sourcetype renaming. You should apply your transform to original sourcetype which is pan:log or pan_log. But as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;warned, above setting will filter everything in that case. Your regex must be specific. Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf

[pan:log]
TRANSFORMS-filter_pan_userid = filter_pan_user_id

transforms.conf

[filter_pan_user_id]
REGEX = ^[^,]+,[^,]+,[^,]+,USERID,
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 08:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630754#M108112</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-14T08:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logs from specific sourcetype being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630817#M108128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to look into this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find that sourcetype in the inputs.conf .&amp;nbsp; Splunk monitors the following file&amp;nbsp;&lt;/P&gt;&lt;P&gt;source="/var/log/splunk/network/paloalto/IP@/syslog.log"&lt;/P&gt;&lt;P&gt;my inputs.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///var/log/splunk/network/paloalto/IP@/syslog.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;host =&lt;BR /&gt;host_segment = 6&lt;BR /&gt;sourcetype = pan:log&lt;BR /&gt;index = test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only see the pan:userid in the props conf&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630817#M108128</guid>
      <dc:creator>newsplunker1</dc:creator>
      <dc:date>2023-02-14T15:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove logs from specific sourcetype being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630818#M108129</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp; - I ll test it and report back&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630818#M108129</guid>
      <dc:creator>newsplunker1</dc:creator>
      <dc:date>2023-02-14T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logs from specific sourcetype being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630819#M108130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/38226"&gt;@newsplunker1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want to discard all logs with the sourcetype=&lt;SPAN&gt;pan:userid and you have only this input with this sourcetype, you can simply disable this input using "disabled = 1".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630819#M108130</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-14T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logs from specific sourcetype being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630821#M108132</link>
      <description>&lt;P&gt;This will disable all sourcetypes&lt;/P&gt;&lt;P&gt;pan:threat&lt;/P&gt;&lt;P&gt;pan:traffic&lt;/P&gt;&lt;P&gt;pan:system&lt;/P&gt;&lt;P&gt;I just want to disable or ignore the logs for&amp;nbsp;pan:userid sourcetype&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630821#M108132</guid>
      <dc:creator>newsplunker1</dc:creator>
      <dc:date>2023-02-14T15:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove logs from specific sourcetype being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630823#M108133</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/38226"&gt;@newsplunker1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;said, this Add-on makes a transformation changing the sourcetype.&lt;/P&gt;&lt;P&gt;In this case the solution is the original one to install on Indexers or (if present) on Heavy Forwarders.&lt;/P&gt;&lt;P&gt;on props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[pan:log]
TRANSFORMS-filter_pan_userid = filter_pan_user_id&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[filter_pan_user_id]
REGEX = ^[^,]+,[^,]+,[^,]+,USERID,
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-logs-from-specific-sourcetype-being-indexed/m-p/630823#M108133</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-14T15:27:37Z</dc:date>
    </item>
  </channel>
</rss>

