<?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: Detection exclusion setting by using Regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614061#M213394</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply and support!&lt;BR /&gt;&lt;BR /&gt;The number of digits are always 13, so I checked with the second one like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;file&amp;gt;\d{13}xx\.exe)$"
| search NOT file=*
| start count by file
| sort - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although it couldn't work accurately.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In addition, just in case, I checked like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;file&amp;gt;\d\d\d\d\d\d\d\d\d\d\d\d\dxx\.exe)$"
| search NOT file=*
| start count by file
| sort - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the result was the same.&lt;BR /&gt;&lt;BR /&gt;It seems "\d" is not working correctly on my computer.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 08:48:18 GMT</pubDate>
    <dc:creator>Ange</dc:creator>
    <dc:date>2022-09-22T08:48:18Z</dc:date>
    <item>
      <title>Detection exclusion setting by using Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614049#M213389</link>
      <description>&lt;P&gt;Hi, everyone.&lt;BR /&gt;&lt;BR /&gt;Need some help for detection exclusion setting.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Want to exclude detections of&amp;nbsp; the files which are applicable to the file path below.&lt;BR /&gt;c:\users\01234567\downloads\1234567890123xx.exe&lt;BR /&gt;&lt;BR /&gt;For preventing alerts, I would like to use "13 digits number" and "xx.exe" as indicators.&lt;BR /&gt;&lt;BR /&gt;For now, I found it can be excluded only by "xx.exe."&lt;BR /&gt;ex) file_path="*xx.exe"&lt;/P&gt;
&lt;P&gt;Although, when I use regex like below, it doesn't work.&lt;BR /&gt;ex) file_path="*\d{13}xx.exe"&lt;BR /&gt;&lt;BR /&gt;Could you please let me know how to set both "13 digits number" and "xx.exe" as indicators for excluding detections?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614049#M213389</guid>
      <dc:creator>Ange</dc:creator>
      <dc:date>2022-09-22T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Detection exclusion setting by using Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614055#M213392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249711"&gt;@Ange&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you are not sure about the number of digits (like in your example) you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| rex "(?&amp;lt;file&amp;gt;\d+xx\.exe)$"
| search NOT file=*
| ...&lt;/LI-CODE&gt;&lt;P&gt;If instead you're sure about the number of digits (17), you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| rex "(?&amp;lt;file&amp;gt;\d{17}xx\.exe)$"
| search NOT file=*
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:19:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614055#M213392</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-22T08:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Detection exclusion setting by using Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614061#M213394</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply and support!&lt;BR /&gt;&lt;BR /&gt;The number of digits are always 13, so I checked with the second one like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;file&amp;gt;\d{13}xx\.exe)$"
| search NOT file=*
| start count by file
| sort - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although it couldn't work accurately.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In addition, just in case, I checked like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;file&amp;gt;\d\d\d\d\d\d\d\d\d\d\d\d\dxx\.exe)$"
| search NOT file=*
| start count by file
| sort - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the result was the same.&lt;BR /&gt;&lt;BR /&gt;It seems "\d" is not working correctly on my computer.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614061#M213394</guid>
      <dc:creator>Ange</dc:creator>
      <dc:date>2022-09-22T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Detection exclusion setting by using Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614063#M213396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249711"&gt;@Ange&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It's very strange because it's a standard regex operator.&lt;/P&gt;&lt;P&gt;Anyway, what do you mean saying: "&lt;SPAN&gt;It seems "\d" is not working correctly on my computer.", what's the not correct result you're receiving?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is it wrong every time or sometimes is it correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614063#M213396</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-22T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Detection exclusion setting by using Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614070#M213400</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I checked with below and now it works correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| regex file_path="\d{13}xx.exe"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your great support!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 09:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614070#M213400</guid>
      <dc:creator>Ange</dc:creator>
      <dc:date>2022-09-22T09:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Detection exclusion setting by using Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614075#M213402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249711"&gt;@Ange&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&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 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 09:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detection-exclusion-setting-by-using-Regex/m-p/614075#M213402</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-22T09:58:13Z</dc:date>
    </item>
  </channel>
</rss>

