<?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: Regex help in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558924#M18982</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61473"&gt;@osasfrancis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have tested this config on my test instance and seems to work perfectly for me.&lt;/P&gt;&lt;P&gt;Are you able to advise if there are any important details you may have missed about the set-up?&lt;/P&gt;&lt;P&gt;Or, can you provide more detail on what your source logs look like? - perhaps provide some more examples?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jul 2021 04:18:59 GMT</pubDate>
    <dc:creator>MKozanic</dc:creator>
    <dc:date>2021-07-10T04:18:59Z</dc:date>
    <item>
      <title>Regex help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558765#M18977</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;In the below event example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7/8/2021 12:21:17 PM 111C PACKET 0000020BF8B054E0 UDP Snd xx.xx.xx.xx d6b8 R Q [8085 A DR NOERROR] AAAA (13)PC-3QZT282-D(7)system(2)us(0)&lt;/P&gt;&lt;P&gt;7/8/2021 12:21:17 PM 111C PACKET 0000020BF8B054E0 UDP Snd xx.xx.xx.xx d6b8 R Q [8085 A DR NOERROR] AAAA (13)PC-3QBVQ11-D(7)maintenance(2)us(0)&lt;/P&gt;&lt;P&gt;I am trying to have a regex that would exclude the first entry from being indexed. Below is the config i have&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[Test:system]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRANSFORMS-null = setnull&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[setnull]&lt;BR /&gt;REGEX = .+system.+&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;After restarting splunk on the heavy forwarder, it still indexes the first event with system in the event.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 21:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558765#M18977</guid>
      <dc:creator>osasfrancis</dc:creator>
      <dc:date>2021-07-08T21:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558775#M18978</link>
      <description>&lt;P&gt;If I read your question correctly AND if your second line is consistent - you could try this instead:&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[setnull]&lt;BR /&gt;REGEX = .+maintenance.+&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;FYI - regex101.com is your best friend for these sorts of issues:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://regex101.com/r/HSimiN/1" target="_blank"&gt;https://regex101.com/r/HSimiN/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 01:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558775#M18978</guid>
      <dc:creator>MKozanic</dc:creator>
      <dc:date>2021-07-09T01:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558778#M18979</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61473"&gt;@osasfrancis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you use the nullQueue the event matches with REGEX will be sent to nullQueue meaning they won't be ingested. In your case you wanted to retain event-1 and discard event-2 hence as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/169934"&gt;@MKozanic&lt;/a&gt;&amp;nbsp; updated REGEX matches the second event that would be discarded if that is the unique pattern (.+maintenance.+).&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if this reply helps you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 02:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558778#M18979</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-09T02:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558784#M18980</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61473"&gt;@osasfrancis&lt;/a&gt;&amp;nbsp; - Sorry, I miss read your question.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;looking more into this, it seems like what you have should be working.&lt;/P&gt;&lt;P&gt;In your props you have&amp;nbsp;&lt;SPAN&gt;[Test:system]&amp;nbsp; does this match the sourcetype of the events you are trying to filter?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 03:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558784#M18980</guid>
      <dc:creator>MKozanic</dc:creator>
      <dc:date>2021-07-09T03:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558871#M18981</link>
      <description>&lt;P&gt;Yes. It does match.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558871#M18981</guid>
      <dc:creator>osasfrancis</dc:creator>
      <dc:date>2021-07-09T16:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558924#M18982</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61473"&gt;@osasfrancis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have tested this config on my test instance and seems to work perfectly for me.&lt;/P&gt;&lt;P&gt;Are you able to advise if there are any important details you may have missed about the set-up?&lt;/P&gt;&lt;P&gt;Or, can you provide more detail on what your source logs look like? - perhaps provide some more examples?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 04:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Regex-help/m-p/558924#M18982</guid>
      <dc:creator>MKozanic</dc:creator>
      <dc:date>2021-07-10T04:18:59Z</dc:date>
    </item>
  </channel>
</rss>

