<?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: Blacklist using props.conf and transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/534242#M89675</link>
    <description>&lt;P&gt;If someone is helpful, this only applies to Heavy forwarders&lt;/P&gt;&lt;P&gt;In Universal forwarder there is no filtering capability through regular expressions&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 15:20:09 GMT</pubDate>
    <dc:creator>splunkcol</dc:creator>
    <dc:date>2020-12-28T15:20:09Z</dc:date>
    <item>
      <title>How to blacklist using props.conf and transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/532024#M89471</link>
      <description>&lt;P&gt;I need to reject or not index the logs that have the word "notice" inside the log&lt;/P&gt;
&lt;P&gt;I understand that it is done using these two files&lt;/P&gt;
&lt;P&gt;I have 2 doubts:&lt;/P&gt;
&lt;P&gt;1. Is the regex ok?&lt;BR /&gt;2. If the path is constantly changing I can use a wildcard? [source::/folder/folder/logs/firewall-xxxxx/* ]&lt;/P&gt;
&lt;P&gt;props.conf&lt;/P&gt;
&lt;P&gt;[source::/folder/folder/logs/firewall-xxxxx/2020/12/4/local7.log]&lt;BR /&gt;TRANSFORMS-null= setnull&lt;/P&gt;
&lt;P&gt;transforms.conf&lt;/P&gt;
&lt;P&gt;[setnull]&lt;BR /&gt;REGEX = notice&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sample Log&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;date=2019-05-10 time=11:37:47 logid="0000000013" type="traffic" subtype="forward"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;level="notice"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;vd="vdom1" eventtime=1557513467369913239 srcip=10.1.100.11 srcport=58012 srcintf="port12" srcintfrole="undefined" dstip=23.59.154.35 dstport=80 dstintf="port11" dstintfrole="undefined" srcuuid="ae28f494-5735-51e9-f247-d1d2ce663f4b" dstuuid="ae28f494-5735-51e9-f247-d1d2ce663f4b" poluuid="ccb269e0-5735-51e9-a218-a397dd08b7eb" sessionid=105048 proto=6 action="close" policyid=1 policytype="policy" service="HTTP" dstcountry="Canada" srccountry="Reserved" trandisp="snat" transip=172.16.200.2 transport=58012 appid=34050 app="HTTP.BROWSER_Firefox" appcat="Web.Client" apprisk="elevated" applist="g-default" duration=116 sentbyte=1188 rcvdbyte=1224 sentpkt=17 rcvdpkt=16 utmaction="allow" countapp=1 osname="Ubuntu" mastersrcmac="a2:e9:00:ec:40:01" srcmac="a2:e9:00:ec:40:01" srcserver=0 utmref=65500-742&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkcol_0-1607090305117.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12191iE85009135976239E/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunkcol_0-1607090305117.png" alt="splunkcol_0-1607090305117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/532024#M89471</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2022-11-17T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/532035#M89473</link>
      <description>&lt;P&gt;The regex is simple. You'd have to answer if it's appropriate or not. Any log event with "notice" anywhere in the event will match.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pattern matching in the `[source::]` qualifier works like it does with inputs. `*` matches anything but file delimiters, and `...` matches anything. Something like this might work &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`[source::/folder/folder/logs/firewall-*/*/*/*/local*.log]`&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/532035#M89473</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2020-12-04T15:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/534242#M89675</link>
      <description>&lt;P&gt;If someone is helpful, this only applies to Heavy forwarders&lt;/P&gt;&lt;P&gt;In Universal forwarder there is no filtering capability through regular expressions&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 15:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/534242#M89675</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2020-12-28T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/621255#M107012</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;This is a simple "positive/included" regex. OK!&lt;/P&gt;&lt;P&gt;Is there a way, in reverse, to do a "negative/exclude" way to filter data?&lt;/P&gt;&lt;P&gt;As an example, as for the log of the user,&lt;BR /&gt;I DO NOT WANT "&lt;SPAN&gt;notice" PATTERN to be indexed, but all the rest,&lt;BR /&gt;something like&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX != notice&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a simple way inside props/transforms?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/621255#M107012</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2022-11-17T14:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist using props.conf and transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/621550#M107046</link>
      <description>&lt;P&gt;I resolved this issue with 2 (or more) transformations, dropping all unuseful events...&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANSFORMS-filter = drop&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[drop]
REGEX = drop_event1|drop_event2|drop_eventX
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's the best way. Maybe the only one &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, at the same time, there's is no way to make both work with drop and get transformation,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANSFORMS-filter = drop,filter&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[drop]
REGEX = drop_event1|drop_event2|drop_eventX
DEST_KEY = queue
FORMAT = nullQueue

[filter]
REGEX = get_event1|get_event2|get_eventX
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;I would like to explain Splunk 8,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;FIRST: drop all events containing pattern regex "drop_event1|drop_event2|drop_eventX"&lt;/LI&gt;&lt;LI&gt;SECOND: get only events containing pattern regex "get_event1|get_event2|get_eventX"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Splunk, after dropping, get all (".*") except "drop_event1|drop_event2|drop_eventX" &lt;span class="lia-unicode-emoji" title=":sleepy_face:"&gt;😪&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 10:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-using-props-conf-and-transforms-conf/m-p/621550#M107046</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2022-11-21T10:46:46Z</dc:date>
    </item>
  </channel>
</rss>

