<?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: _audit search for regex's in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422543#M121328</link>
    <description>&lt;P&gt;So you want to know whenever one of your users searches for a SSN, IP address, or credit card number, is that it?  If so, you have quite a challenge on your hands.  There are a great many ways to construct regular expressions for each of those and a regular expression to detect those regular expressions is beyond anything I'd like to try.&lt;BR /&gt;
Of course, if your data doesn't contain any SSNs or CC numbers (and it really should not) then it doesn't matter if anyone searches for them.&lt;BR /&gt;
Perhaps if you described the problem you're trying to solve we can offer another solution.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 12:48:35 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-04-25T12:48:35Z</dc:date>
    <item>
      <title>_audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422539#M121324</link>
      <description>&lt;P&gt;Is it possible to build a search looking for regex variances? i.e. SSN regex, CC regex&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422539#M121324</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-04-23T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: _audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422540#M121325</link>
      <description>&lt;P&gt;Please explain your use case.  What is a "regex variance"?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 16:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422540#M121325</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-04-23T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: _audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422541#M121326</link>
      <description>&lt;P&gt;What are you asking? What should your query or data should look like. &lt;BR /&gt;
Are you trying to locate those patterns (&lt;STRONG&gt;regex or rex&lt;/STRONG&gt;)? Replace things (&lt;STRONG&gt;rex&lt;/STRONG&gt;)? What do you mean when you say regex variance? Are you trying to test your pattern to see if it will work on your data?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Just in case:&lt;/STRONG&gt; &lt;BR /&gt;
&lt;EM&gt;SSN regex:&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;
\d{3}-\d{2}-\d{4}&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Testing sites I use:&lt;/EM&gt;&lt;BR /&gt;
&lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://regexr.com/3f4vo"&gt;https://regexr.com/3f4vo&lt;/A&gt; (&lt;STRONG&gt;Engine needs to be changed to PCRE&lt;/STRONG&gt;)&lt;/P&gt;

&lt;P&gt;I need more information before I can help you with your query.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 17:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422541#M121326</guid>
      <dc:creator>ryhluc01</dc:creator>
      <dc:date>2019-04-23T17:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: _audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422542#M121327</link>
      <description>&lt;P&gt;I am looking for both regex and rex. I have the same SSN regex. (I am not really good with generating rex or regex) We want to monitor our _audit index for searches containing SSN, specific IP addresses and Credit Card rex and/or regex's. As far as variances I was meaning rex and regex.  &lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 14:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422542#M121327</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-04-24T14:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: _audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422543#M121328</link>
      <description>&lt;P&gt;So you want to know whenever one of your users searches for a SSN, IP address, or credit card number, is that it?  If so, you have quite a challenge on your hands.  There are a great many ways to construct regular expressions for each of those and a regular expression to detect those regular expressions is beyond anything I'd like to try.&lt;BR /&gt;
Of course, if your data doesn't contain any SSNs or CC numbers (and it really should not) then it doesn't matter if anyone searches for them.&lt;BR /&gt;
Perhaps if you described the problem you're trying to solve we can offer another solution.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422543#M121328</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-04-25T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: _audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422544#M121329</link>
      <description>&lt;P&gt;That is exactly as you stated. We are sure our data does not contain CC and SSN but you never know. But I do know we have IP addresses in our data. Since this is a completely new realm to me I am trying to gather as much information as possible to attempt a query searching for regex's such as SSN, CC and IP addresses, but of course it would help if I can explain my questions better as well. &lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422544#M121329</guid>
      <dc:creator>reneedeleon</dc:creator>
      <dc:date>2019-04-26T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: _audit search for regex's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422545#M121330</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit sourcetype=audittrail action=search
| regex search="(?&amp;lt;!\d)(\d{3}[\s\-]\d{2}[\s\-]\d{4})|(\d{4}[\s\-]\d{4}[\s\-]\d{4}[\s\-]\d{4})(?!\d)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Apr 2019 19:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/audit-search-for-regex-s/m-p/422545#M121330</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T19:27:43Z</dc:date>
    </item>
  </channel>
</rss>

