<?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 in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600035#M12745</link>
    <description>&lt;P&gt;Yeah we can do in that way but in anchor tag we can't expect only card details. We have some other data too.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;card&amp;gt;xxxxxxxxxx9787&amp;lt;card&lt;/P&gt;&lt;P&gt;card&amp;gt; this is so and so info xxxxxxxx9797&amp;lt;card.&lt;/P&gt;&lt;P&gt;So how can we search card details in these cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 08:50:49 GMT</pubDate>
    <dc:creator>Kk</dc:creator>
    <dc:date>2022-06-01T08:50:49Z</dc:date>
    <item>
      <title>How do I create a Regex that doesn't contain random numbers or timestamps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600016#M12740</link>
      <description>&lt;P&gt;Hi All, I'm trying to find the credit card details in the logs with all in one regex expression. But I was also getting some other data too like timestamp data as it has more than 12digits and some random data. Just bit exhausted with this thing here. Is there any possible solution to find the credit card numbers directly that will not contains random numbers or time stamps. Help me with the query if possible.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 15:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600016#M12740</guid>
      <dc:creator>Kk</dc:creator>
      <dc:date>2022-06-01T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600018#M12741</link>
      <description>&lt;P&gt;With regex, it helps to identify some sort of anchor pattern e.g. "card=xxxx". If you don't have this, and you just want to look for strings of 16 digits for example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\D(?&amp;lt;possiblecard&amp;gt;\d{16})\D"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 07:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600018#M12741</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T07:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600024#M12742</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, actually we are having many anchor patterns to recognise the card details. Example like card&amp;gt;xxxx, text:xxx. So is their any way to find by using generic query?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600024#M12742</guid>
      <dc:creator>Kk</dc:creator>
      <dc:date>2022-06-01T08:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600027#M12743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243968"&gt;@Kk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better solution/suggestions can be provided if you paste some sample/dummy data&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600027#M12743</guid>
      <dc:creator>venky1544</dc:creator>
      <dc:date>2022-06-01T08:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600028#M12744</link>
      <description>&lt;P&gt;Regex works with patterns - if you can define what you mean by generic as a pattern, then you might be able to do it in regex. For example, the "generic" pattern is my example is non-digit followed by 16 digits followed by another non-digit. If you know all the anchors you are expecting, you might be able to combine them into a single rex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(anchor1|anchor2|anchor3)(?&amp;lt;card&amp;gt;\d{16})\D"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600028#M12744</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T08:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600035#M12745</link>
      <description>&lt;P&gt;Yeah we can do in that way but in anchor tag we can't expect only card details. We have some other data too.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;card&amp;gt;xxxxxxxxxx9787&amp;lt;card&lt;/P&gt;&lt;P&gt;card&amp;gt; this is so and so info xxxxxxxx9797&amp;lt;card.&lt;/P&gt;&lt;P&gt;So how can we search card details in these cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600035#M12745</guid>
      <dc:creator>Kk</dc:creator>
      <dc:date>2022-06-01T08:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600037#M12746</link>
      <description>&lt;P&gt;&lt;A href="https://regex101.com/r/eqLFaV/1" target="_self"&gt;https://regex101.com/r/eqLFaV/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "card&amp;gt;.*?\D?(?&amp;lt;card&amp;gt;\d{16})\&amp;lt;card"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-create-a-Regex-that-doesn-t-contain-random-numbers-or/m-p/600037#M12746</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-01T08:56:54Z</dc:date>
    </item>
  </channel>
</rss>

