<?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 How to achieve regex for ingest actions to match a list of EventCodes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629152#M218542</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to get regex to work in ingest actions to match a list of event codes from Window Security Logs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following regex matches sample text on regex101.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;^(EventCode=(1102|4616|4624|4625|4634|46484657|4697|4698|4699|4700|4701|4702|4719|4720|4722|4723|4725|4728|4732|4735|4737|4738|4740|4755|4756|4767|4772|4777|4782|4946|4947|4950|4954|4964|5025|5031|5152|5153|5155|5157|5447))$&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it doesn't find in matches when using in ingest actions.&lt;/P&gt;
&lt;P&gt;Given the eventcodes listed above, can someone assist me with finding the correct regex that will work inside of ingest actions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-01 at 6.55.55 AM.png" style="width: 748px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23663iA67B09D976ED6EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-01 at 6.55.55 AM.png" alt="Screenshot 2023-02-01 at 6.55.55 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-01 at 6.53.43 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23664iEF79DD1A9945D9FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-01 at 6.53.43 AM.png" alt="Screenshot 2023-02-01 at 6.53.43 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 16:36:20 GMT</pubDate>
    <dc:creator>garrywilmeth</dc:creator>
    <dc:date>2023-02-01T16:36:20Z</dc:date>
    <item>
      <title>How to achieve regex for ingest actions to match a list of EventCodes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629152#M218542</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to get regex to work in ingest actions to match a list of event codes from Window Security Logs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following regex matches sample text on regex101.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;^(EventCode=(1102|4616|4624|4625|4634|46484657|4697|4698|4699|4700|4701|4702|4719|4720|4722|4723|4725|4728|4732|4735|4737|4738|4740|4755|4756|4767|4772|4777|4782|4946|4947|4950|4954|4964|5025|5031|5152|5153|5155|5157|5447))$&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it doesn't find in matches when using in ingest actions.&lt;/P&gt;
&lt;P&gt;Given the eventcodes listed above, can someone assist me with finding the correct regex that will work inside of ingest actions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-01 at 6.55.55 AM.png" style="width: 748px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23663iA67B09D976ED6EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-01 at 6.55.55 AM.png" alt="Screenshot 2023-02-01 at 6.55.55 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-01 at 6.53.43 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23664iEF79DD1A9945D9FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-01 at 6.53.43 AM.png" alt="Screenshot 2023-02-01 at 6.53.43 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629152#M218542</guid>
      <dc:creator>garrywilmeth</dc:creator>
      <dc:date>2023-02-01T16:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Ingest Actions to match a list of EventCodes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629162#M218545</link>
      <description>&lt;P&gt;Eliminate the ^ and $ from the regex.&amp;nbsp; The position of the matching text within the line/event doesn't matter and it's unlikely there will be a random "EventCode=4689" in other events.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629162#M218545</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-01T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Ingest Actions to match a list of EventCodes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629163#M218546</link>
      <description>&lt;P&gt;Beautiful!&amp;nbsp; Too easy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629163#M218546</guid>
      <dc:creator>garrywilmeth</dc:creator>
      <dc:date>2023-02-01T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Ingest Actions to match a list of EventCodes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629165#M218547</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;How could I flip that so the regex matches anything that is not in that list?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Garry&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629165#M218547</guid>
      <dc:creator>garrywilmeth</dc:creator>
      <dc:date>2023-02-01T16:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Ingest Actions to match a list of EventCodes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629195#M218554</link>
      <description>&lt;P&gt;Regex doesn't do negation well, but you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EventCode=(?!1102|4616|4624|4625|4634|46484657|4697|4698|4699|4700|4701|4702|4719|4720|4722|4723|4725|4728|4732|4735|4737|4738|4740|4755|4756|4767|4772|4777|4782|4946|4947|4950|4954|4964|5025|5031|5152|5153|5155|5157|5447)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-regex-for-ingest-actions-to-match-a-list-of/m-p/629195#M218554</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-01T17:42:15Z</dc:date>
    </item>
  </channel>
</rss>

