<?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: Events are not getting filtered using props.conf &amp;amp; transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517408#M87553</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28148"&gt;@sraji&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;where did you located the props.conf and transforms.conf? they must be located on Indexers or (when present) on Heavy Forwarders, not on Universal Forwarders.&lt;/P&gt;&lt;P&gt;Then, are you speaking of the first (&lt;SPAN&gt;keep specific events and discardithe rest) or the second (discard specific events)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if the first, the meaning of the command is that you take only the events that match the regex and discard all the others.&lt;/P&gt;&lt;P&gt;If the second you directly discard the events that match the regex.&lt;/P&gt;&lt;P&gt;Did you restarted Splunk?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 07:12:58 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-02T07:12:58Z</dc:date>
    <item>
      <title>Events are not getting filtered using props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517362#M87548</link>
      <description>&lt;P&gt;I was wondering why all of the filters implemented are not working. Below is my props.conf &amp;amp; transforms.conf file&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[source::L:\\sample\\logs\\collections...*&amp;gt;]&lt;BR /&gt;TRANSFORMS-set= samplecollectionlogs&lt;/P&gt;&lt;P&gt;[source::L:\\sample\\logs\\(?:commands|webapps|partions)...*&amp;gt;]&lt;BR /&gt;TRANSFORMS-set1= samplecommandlogs&lt;/P&gt;&lt;P&gt;[source::L:\\sample\\logs\\engines...*&amp;gt;]&lt;BR /&gt;SEDCMD-maskfilterlist = s/\(\(not\(deniedlist1 in \('.*'\)\)\)\) /((not(deniedlist1 in ('_content_removed_by_splunk')))) /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[samplecollectionlogs]&lt;BR /&gt;REGEX = (^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s(\{\d+\}\s)?(mapping|custom|TreePrefixBuilder|XB|ScdLookup|\s|\})|^[^0-9\]])&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = indexQueue&lt;/P&gt;&lt;P&gt;[samplecommandlogs]&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;Also my doubts is&amp;nbsp;L:\\sample\\logs path are not defined in my heavy splunk(i.e where my props &amp;amp; transforms file reside) but these paths are defined in inputs of the universal forwarders. Source will also consider the monitor path from universal forwarders or should i define in heavy forwarder as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 04:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517362#M87548</guid>
      <dc:creator>sraji</dc:creator>
      <dc:date>2020-09-02T04:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Events are not getting filtered using props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517391#M87549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28148"&gt;@sraji&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;to filter events keeping specific events and discarding the rest you have to put the command on the same row in props.conf.&lt;/P&gt;&lt;P&gt;You have only to put attention that the setnull must be before the other, something like this:&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::L:\\sample\\logs\\\\...*&amp;gt;]
TRANSFORMS-set= samplecommandlogs,samplecollectionlogs

[source::L:\\sample\\logs\\engines...*&amp;gt;]
SEDCMD-maskfilterlist = s/\(\(not\(deniedlist1 in \('.*'\)\)\)\) /((not(deniedlist1 in ('_content_removed_by_splunk')))) /&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[samplecollectionlogs]
REGEX = (^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s(\{\d+\}\s)?(mapping|custom|TreePrefixBuilder|XB|ScdLookup|\s|\})|^[^0-9\]])
DEST_KEY = queue
FORMAT = indexQueue

[samplecommandlogs]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;Anyway, check the regexes in regex101 site.&lt;/P&gt;&lt;P&gt;If instead you want only to discard specific events, you can use only "samplecommandlogs".&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 06:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517391#M87549</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-02T06:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Events are not getting filtered using props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517404#M87551</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;Yes i have made the changes as given but still the events are getting indexed from &lt;SPAN&gt;samplecommandlogs&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 07:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517404#M87551</guid>
      <dc:creator>sraji</dc:creator>
      <dc:date>2020-09-02T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Events are not getting filtered using props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517405#M87552</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; , Yes i have made the changes as given but still the events are getting indexed from samplecommandlogs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 07:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517405#M87552</guid>
      <dc:creator>sraji</dc:creator>
      <dc:date>2020-09-02T07:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Events are not getting filtered using props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517408#M87553</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28148"&gt;@sraji&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;where did you located the props.conf and transforms.conf? they must be located on Indexers or (when present) on Heavy Forwarders, not on Universal Forwarders.&lt;/P&gt;&lt;P&gt;Then, are you speaking of the first (&lt;SPAN&gt;keep specific events and discardithe rest) or the second (discard specific events)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if the first, the meaning of the command is that you take only the events that match the regex and discard all the others.&lt;/P&gt;&lt;P&gt;If the second you directly discard the events that match the regex.&lt;/P&gt;&lt;P&gt;Did you restarted Splunk?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 07:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517408#M87553</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-02T07:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Events are not getting filtered using props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517410#M87554</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Props.conf &amp;amp; transforms.conf are located under&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;splunk_home&amp;gt;/etc/system/local/. Yes it is heavy forwarder because here only search &amp;amp; index is available.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&amp;nbsp;samplecollectionlogs i dont have any logs which are matching now so no events are filtered --&amp;gt; anyway i cant test this untill i have events which are related to this&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&amp;nbsp;samplecommandlogs it needs to discard all the event matches&amp;nbsp; --&amp;gt; this is not discarding the documents&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Yes i have restarted the splunk instance from settings--&amp;gt;server controls--&amp;gt; restart splunk&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Sep 2020 07:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-are-not-getting-filtered-using-props-conf-amp-transforms/m-p/517410#M87554</guid>
      <dc:creator>sraji</dc:creator>
      <dc:date>2020-09-02T07:32:44Z</dc:date>
    </item>
  </channel>
</rss>

