<?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: Send the data to nullqueue except matching event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741031#M117795</link>
    <description>&lt;P&gt;Regular expressions don't handle negation well.&amp;nbsp; The given regex will match the sample event because the third character does not consist of &lt;FONT face="courier new,courier"&gt;"EventType"&lt;/FONT&gt;.&amp;nbsp; It's probably better to index matching events and discard the rest.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[solarwinds:alerts]
TRANSFORMS-t=keep-5000, delete-others


[keep-5000]
REGEX = ("EventType": 5000)
DEST_KEY = queue
FORMAT = indexQueue

[delete-others]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 06 Mar 2025 15:51:32 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-03-06T15:51:32Z</dc:date>
    <item>
      <title>Send the data to nullqueue except matching event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741029#M117794</link>
      <description>&lt;P&gt;I want to send the all the event to nullqueue except having match "EventType": 5000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"EventID": 2154635, "EventType": 5000, &lt;SPAN&gt;"NetObjectValue": null, "EngineID": null&lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[solarwinds:alerts]&lt;BR /&gt;TRANSFORMS-t=eliminate-except-5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[eliminate-except-5000]&lt;BR /&gt;REGEX=[\w\W]+[^("EventType": 500)]&lt;BR /&gt;DEST_KEY=queue&lt;BR /&gt;FORMAT=nullQueue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 15:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741029#M117794</guid>
      <dc:creator>RSS_STT</dc:creator>
      <dc:date>2025-03-06T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send the data to nullqueue except matching event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741031#M117795</link>
      <description>&lt;P&gt;Regular expressions don't handle negation well.&amp;nbsp; The given regex will match the sample event because the third character does not consist of &lt;FONT face="courier new,courier"&gt;"EventType"&lt;/FONT&gt;.&amp;nbsp; It's probably better to index matching events and discard the rest.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[solarwinds:alerts]
TRANSFORMS-t=keep-5000, delete-others


[keep-5000]
REGEX = ("EventType": 5000)
DEST_KEY = queue
FORMAT = indexQueue

[delete-others]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Mar 2025 15:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741031#M117795</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-03-06T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Send the data to nullqueue except matching event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741062#M117799</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a thought, but arent the transforms applied in order, so with&amp;nbsp;keep-5000, delete-others it will set indexQueue if its eventType 5000, and then set nullQueue for everything (incl eventType 5000)? I think the queue can be updated multiple times with props/transforms so might need to be delete-others first so it set queue to nullQueue for everything, and then update to indexQueue for eventType 5000?&lt;/P&gt;&lt;P&gt;I might be wrong and cant find any solid evidence to backup my theory at the mo, other than trying it out which I will do if I get chance!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 22:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741062#M117799</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-06T22:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Send the data to nullqueue except matching event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741065#M117800</link>
      <description>&lt;P&gt;You&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;are correct. It should be 1st send all to nullQueue and then select those events which you want to keep.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 23:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741065#M117800</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-03-06T23:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Send the data to nullqueue except matching event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741066#M117801</link>
      <description>&lt;P&gt;You're right, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt; I have the order reversed.&amp;nbsp; Here's the docs I couldn't find earlier: &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.1/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.4.1/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 00:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741066#M117801</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-03-07T00:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Send the data to nullqueue except matching event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741120#M117820</link>
      <description>&lt;P&gt;Yes. The transforms are applied&lt;/P&gt;&lt;P&gt;1. Within a single transform class - left to right&lt;/P&gt;&lt;P&gt;2. Separate transform classes are called in alphabetical order.&lt;/P&gt;&lt;P&gt;What is important though (and what is often overlooked by the beginners; guilty of it myself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;) is that all matching transforms are "fired". It's not like ACL that only first one that matches is executed.&lt;/P&gt;&lt;P&gt;So if you want to do something only for some events, you have to _first_ do the default action (for example, redirect to nullQueue as in this example) and only _then_ update some events to get the special treatment (in this case - get them indexed).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 13:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-the-data-to-nullqueue-except-matching-event/m-p/741120#M117820</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-07T13:23:45Z</dc:date>
    </item>
  </channel>
</rss>

