<?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 Regex to find out 13 or more continuous numbers in a Splunk search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209023#M61044</link>
    <description>&lt;P&gt;With the following search, I am able to get the following results which is good. I want to create an alert when any credit card number comes into the search without encryption. Please suggest me the regex to find the credit card number which comes in without an encrypted format so that we can take care of those results to be encrypted.&lt;/P&gt;

&lt;P&gt;Search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="XYZ" "&amp;lt;cardNumber&amp;gt;*&amp;lt;/cardNumber&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result contain:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;creditCard&amp;gt;&amp;lt;cardNumber&amp;gt;8NLLzf02On7Oo09/5+A7ICBR6Tiu30S6&amp;lt;/cardNumber&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Sep 2015 14:31:25 GMT</pubDate>
    <dc:creator>pavanae</dc:creator>
    <dc:date>2015-09-10T14:31:25Z</dc:date>
    <item>
      <title>Regex to find out 13 or more continuous numbers in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209023#M61044</link>
      <description>&lt;P&gt;With the following search, I am able to get the following results which is good. I want to create an alert when any credit card number comes into the search without encryption. Please suggest me the regex to find the credit card number which comes in without an encrypted format so that we can take care of those results to be encrypted.&lt;/P&gt;

&lt;P&gt;Search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="XYZ" "&amp;lt;cardNumber&amp;gt;*&amp;lt;/cardNumber&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result contain:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;creditCard&amp;gt;&amp;lt;cardNumber&amp;gt;8NLLzf02On7Oo09/5+A7ICBR6Tiu30S6&amp;lt;/cardNumber&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209023#M61044</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2015-09-10T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to find out 13 or more continuous numbers in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209024#M61045</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="XYZ" "&amp;lt;cardNumber&amp;gt;*&amp;lt;/cardNumber&amp;gt;" | rex "\&amp;lt;cardNumber\&amp;gt;(?&amp;lt;cardNumber&amp;gt;.+)\&amp;lt;\/cardNumber\&amp;gt;" | where len(cardNumber)=16
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209024#M61045</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-10T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to find out 13 or more continuous numbers in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209025#M61046</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="XYZ" "&amp;lt;cardNumber&amp;gt;*&amp;lt;/cardNumber&amp;gt;" | regex _raw = "\d{13,}"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209025#M61046</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-10T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to find out 13 or more continuous numbers in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209026#M61047</link>
      <description>&lt;P&gt;I would change the regex to match only numbers. As it stands it would match where a hashed card number happens to be 16 chars long.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209026#M61047</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2015-09-10T16:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to find out 13 or more continuous numbers in a Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209027#M61048</link>
      <description>&lt;P&gt;It can give a false match if the hashed/encrypted cardnumber also has 16 digits. Once encrypted, it can contain any character so checking the same.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-find-out-13-or-more-continuous-numbers-in-a-Splunk/m-p/209027#M61048</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-10T16:21:42Z</dc:date>
    </item>
  </channel>
</rss>

