<?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: /var/log/messages filter null queue not filtering in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613606#M106178</link>
    <description>&lt;P&gt;This is a note for people who visit this post.&amp;nbsp; Turn out that you have to send to the null queue then process the filter from the null queue.&amp;nbsp; But, the documentation or I was reading a differently&amp;nbsp;&lt;A class="" href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad" target="_blank" rel="noopener"&gt;Route and filter data.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;As with other index-time field extractions, processing of transforms happens in the order that you specify them, from left to right. The key difference is the order in which you specify the stanzas. In this example, the setnull stanza must appear first in the list. This is because if you set it last, it matches all events and sends them to the nullQueue, and as it is the last transform, it effectively throws all of the events away, even those that previously matched the setparsing stanza.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the left to right is saying send everything to null queue then process the filter.&amp;nbsp; Hope that better for those are trying route data differently.&amp;nbsp; Oh, you don't have to write regex for the whole line of pattern instead write a unique portion to enforce like host or domain name in my case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 13:30:51 GMT</pubDate>
    <dc:creator>youngsuh</dc:creator>
    <dc:date>2022-09-19T13:30:51Z</dc:date>
    <item>
      <title>Why are /var/log/messages filter null queue not filtering?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613301#M106133</link>
      <description>&lt;P&gt;Need regex &amp;amp; Null queue help to send events in /var/log/messages.&lt;/P&gt;
&lt;P&gt;Here is regex101:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://regex101.com/r/Wk2wh9/4" target="_blank" rel="noopener"&gt;regex101: build, test, and debug regex&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(IP &amp;amp; hostname randomized)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;props.conf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[source::/var/log/messages]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRANSFORMS-set= setnull,setparsing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;transforms.conf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[setnull]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REGEX = \w{3}\s\d{2}\s\d{2}:\d{2}:\d{2}\s\w+\n&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEST_KEY = queue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FORMAT = nullQueue&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[setparsing]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REGEX = \w{3}\s\d{2}\s\d{2}:\d{2}:\d{2}\s\w{5}\d{4}\S\&lt;A href="https://i.np2.navy.mil/" target="_blank" rel="noopener nofollow noreferrer"&gt;i.ab2.jone.com&lt;/A&gt;\s.+\n&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEST_KEY = queue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FORMAT = indexQueue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;the regex not sending unwanted event in /var/log/message .&amp;nbsp; I am doing the on HF before UF.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613301#M106133</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2022-09-16T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: /var/log/messages filter null queue not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613333#M106136</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32102"&gt;@youngsuh&lt;/a&gt;&amp;nbsp;- Your regex101 link does not seem to be valid anymore.&lt;/P&gt;&lt;P&gt;Also, just be sure does your log file name is just message or it message.log, or messages.log or message-2022-09-16.log???&lt;/P&gt;&lt;P&gt;If that's the case then you must specify the wildcard in the props.conf stanza.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 05:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613333#M106136</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-09-16T05:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: /var/log/messages filter null queue not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613346#M106137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32102"&gt;@youngsuh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want to take from /var/log/messages only events containing&amp;nbsp;"&lt;A href="https://i.np2.navy.mil/" target="_blank" rel="noopener nofollow noreferrer"&gt;i.ab2.jone.com&lt;/A&gt;", you should try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf
[source::/var/log/messages]
TRANSFORMS-set = setnull,setparsing

transforms.conf
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = i\.ab2\.jone\.com
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 05:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613346#M106137</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-16T05:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: /var/log/messages filter null queue not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613477#M106150</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352" target="_blank"&gt;@gcusello&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;Thanks for taking the time to reply.&amp;nbsp; I'll give that a shot and get back to you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 22:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613477#M106150</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2022-09-16T22:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: /var/log/messages filter null queue not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613490#M106156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32102"&gt;@youngsuh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 04:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613490#M106156</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-17T04:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: /var/log/messages filter null queue not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613606#M106178</link>
      <description>&lt;P&gt;This is a note for people who visit this post.&amp;nbsp; Turn out that you have to send to the null queue then process the filter from the null queue.&amp;nbsp; But, the documentation or I was reading a differently&amp;nbsp;&lt;A class="" href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad" target="_blank" rel="noopener"&gt;Route and filter data.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;As with other index-time field extractions, processing of transforms happens in the order that you specify them, from left to right. The key difference is the order in which you specify the stanzas. In this example, the setnull stanza must appear first in the list. This is because if you set it last, it matches all events and sends them to the nullQueue, and as it is the last transform, it effectively throws all of the events away, even those that previously matched the setparsing stanza.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the left to right is saying send everything to null queue then process the filter.&amp;nbsp; Hope that better for those are trying route data differently.&amp;nbsp; Oh, you don't have to write regex for the whole line of pattern instead write a unique portion to enforce like host or domain name in my case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-var-log-messages-filter-null-queue-not-filtering/m-p/613606#M106178</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2022-09-19T13:30:51Z</dc:date>
    </item>
  </channel>
</rss>

