<?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 working on Regex101 but not in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502897#M195237</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (?ms)Member:\s+Security\s+ID:\s+(?&amp;lt;Security_ID&amp;gt;[^ ]+)\s+Account
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 08:40:15 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-03-25T08:40:15Z</dc:date>
    <item>
      <title>Regex working on Regex101 but not in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502894#M195234</link>
      <description>&lt;P&gt;I am having below event -&lt;BR /&gt;
Subject:&lt;BR /&gt;
    Security ID:        EMEA\abc&lt;BR /&gt;
    Account Name:       XXXXXXX&lt;BR /&gt;
    Account Domain:     EMEA&lt;BR /&gt;
    Logon ID:       XXXXXXX&lt;/P&gt;

&lt;P&gt;Member:&lt;BR /&gt;
    Security ID:        EMEA\User&lt;BR /&gt;
    Account Name:       CN=XXXXXX&lt;/P&gt;

&lt;P&gt;Group:&lt;BR /&gt;
    Security ID:        XXXXXXXXXXXXXXXXXX&lt;BR /&gt;
    Account Name:       XXXXXXXXXXXXXXXXXXX&lt;BR /&gt;
    Account Domain:     EMEA&lt;/P&gt;

&lt;P&gt;I need to extract Member: Security ID &lt;BR /&gt;
I have used below regex to extract this-&lt;BR /&gt;
Member:\n\s+Security\s+ID:\s+(?.*)&lt;/P&gt;

&lt;P&gt;It seems to be working in Regex101 but when I use this in Splunk its not working .&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 08:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502894#M195234</guid>
      <dc:creator>shugup2923</dc:creator>
      <dc:date>2020-03-25T08:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regex working on Regex101 but not in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502895#M195235</link>
      <description>&lt;P&gt;Hi @shugup2923,&lt;BR /&gt;
please use Code Sample button (the one with 101010) to display your regex otherwise it isn't possible to help you.&lt;BR /&gt;
Only to try in blind mode: did you inserted (?ms) at the beginning of the regex?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)Member:\s+Security\s+ID:\s+(?&amp;lt;Security_ID&amp;gt;[^ ]+)Account
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 08:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502895#M195235</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-03-25T08:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex working on Regex101 but not in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502896#M195236</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Member:\n\s+Security\s+ID\:\s+(?.*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Mar 2020 08:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502896#M195236</guid>
      <dc:creator>shugup2923</dc:creator>
      <dc:date>2020-03-25T08:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex working on Regex101 but not in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502897#M195237</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (?ms)Member:\s+Security\s+ID:\s+(?&amp;lt;Security_ID&amp;gt;[^ ]+)\s+Account
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 08:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-working-on-Regex101-but-not-in-splunk/m-p/502897#M195237</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-03-25T08:40:15Z</dc:date>
    </item>
  </channel>
</rss>

