<?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: Fields extractions using rex in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-write-this-field-extraction-using-rex/m-p/591717#M12034</link>
    <description>&lt;P&gt;Is this what you mean?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^(?&amp;lt;jcb&amp;gt;(?:2131|1800|35\d{3})\d{11})|(?&amp;lt;visa&amp;gt;4[0-9]{12}(?:[0-9]{3})?)$"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 31 Mar 2022 09:11:44 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-31T09:11:44Z</dc:date>
    <item>
      <title>How to write this field extraction using rex?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-write-this-field-extraction-using-rex/m-p/591708#M12033</link>
      <description>&lt;P&gt;Hi All, I'm trying to extract the card details in&amp;nbsp; my logs. Just confused how to extract the two or more card details or thier respective fields using rex command.&lt;/P&gt;
&lt;P&gt;Example : Visa card numbers regex is&amp;nbsp;&lt;SPAN&gt;^4[0-9]{12}(?:[0-9]{3})?$&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JCB card numbers regex is&amp;nbsp;&lt;SPAN&gt;^(?:2131|1800|35\d{3})\d{11}$&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I just want to extract the Visa and JCB fileds to check my card details. Is thier a way to create named grouped fields for the above cards using rex command in a single search?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Help me with the query guys.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 13:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-write-this-field-extraction-using-rex/m-p/591708#M12033</guid>
      <dc:creator>Kk</dc:creator>
      <dc:date>2022-03-31T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fields extractions using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-write-this-field-extraction-using-rex/m-p/591717#M12034</link>
      <description>&lt;P&gt;Is this what you mean?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^(?&amp;lt;jcb&amp;gt;(?:2131|1800|35\d{3})\d{11})|(?&amp;lt;visa&amp;gt;4[0-9]{12}(?:[0-9]{3})?)$"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 09:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-write-this-field-extraction-using-rex/m-p/591717#M12034</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-31T09:11:44Z</dc:date>
    </item>
  </channel>
</rss>

