<?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: How do I construct a regular expression with wildcard matching? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285370#M86350</link>
    <description>&lt;P&gt;Hi @dbcase - Just so you know, I edited your original question to include your revised/correct last sentence instead of having it as a floating comment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 17:42:46 GMT</pubDate>
    <dc:creator>aaraneta_splunk</dc:creator>
    <dc:date>2016-09-15T17:42:46Z</dc:date>
    <item>
      <title>How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285364#M86344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data that looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;####&amp;lt;Sep 15, 2016 9:35:27 AM CDT&amp;gt; &amp;lt;Debug&amp;gt; &amp;lt;ucontrol&amp;gt; &amp;lt;betamax-cpe1&amp;gt; &amp;lt;managedServer1&amp;gt; &amp;lt;client-8&amp;gt; &amp;lt;&amp;lt;anonymous&amp;gt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;1473950127749&amp;gt; &amp;lt;BEA-000000&amp;gt; &amp;lt;org.jivesoftware.util.Log  - SENT: &amp;lt;failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&amp;gt;&amp;lt;not-authorized/&amp;gt;&amp;lt;/failure&amp;gt;&amp;gt; 

####&amp;lt;Sep 15, 2016 10:18:53 AM CDT&amp;gt; &amp;lt;Warning&amp;gt; &amp;lt;ucontrol&amp;gt; &amp;lt;betamax-cpe1&amp;gt; &amp;lt;managedServer1&amp;gt; &amp;lt;smsQueueListenerContainer-1&amp;gt; &amp;lt;&amp;lt;anonymous&amp;gt;&amp;gt; &amp;lt;BEA1-35C7B98CDE9F&amp;gt; &amp;lt;&amp;gt; &amp;lt;1473952733478&amp;gt; &amp;lt;BEA-000000&amp;gt; &amp;lt;fn.service.impl.NumerexSmsSender  - UCE-22233 - Failed to send Numerex sms message to 5555555555&amp;gt; 

####&amp;lt;Sep 15, 2016 10:11:46 AM CDT&amp;gt; &amp;lt;Warning&amp;gt; &amp;lt;ucontrol&amp;gt; &amp;lt;betamax-portal1&amp;gt; &amp;lt;managedServer3&amp;gt; &amp;lt;[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'&amp;gt; &amp;lt;&amp;lt;anonymous&amp;gt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;1473952306182&amp;gt; &amp;lt;BEA-000000&amp;gt; &amp;lt;fn.webapp.listener.AuthenticationListener  - Authentication Auditing Failed: AuthenticationFailureBadCredentialsEvent&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I need to do is search on a failure but the failure condition is presented in several ways (i.e. &lt;CODE&gt;failed:  OR  failed;  OR  failed, OR failed.  OR &amp;lt;failure&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What I need to do is match on &lt;CODE&gt;failed* OR &amp;lt;failure&lt;/CODE&gt; and then capture to the end of the line.&lt;/P&gt;

&lt;P&gt;Still rather new to regex so I'm unsure how to do wildcard matching&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285364#M86344</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-15T15:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285365#M86345</link>
      <description>&lt;P&gt;Please check this - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=failure | rex field=_raw "&amp;lt;?[fF]ail[eu][dr]?e?[:;,. ](?&amp;lt;failedCode&amp;gt;.*)" | table failedCode _time _raw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285365#M86345</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-15T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285366#M86346</link>
      <description>&lt;P&gt;Something like this, perhaps?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "fail\w*\s*(?&amp;lt;failureMsg&amp;gt;.*)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285366#M86346</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-09-15T15:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285367#M86347</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | rex "&amp;lt;?[fF]ail[eu][dr]?e?[:;,. ](?&amp;lt;failure_code&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285367#M86347</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-09-15T15:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285368#M86348</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "\b(?&amp;lt;failmsg&amp;gt;[Ff]ail.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285368#M86348</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-15T16:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285369#M86349</link>
      <description>&lt;P&gt;I have no idea how you do regex so eloquently....  Maybe one day I can do the same....  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285369#M86349</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-15T16:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I construct a regular expression with wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285370#M86350</link>
      <description>&lt;P&gt;Hi @dbcase - Just so you know, I edited your original question to include your revised/correct last sentence instead of having it as a floating comment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 17:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-construct-a-regular-expression-with-wildcard-matching/m-p/285370#M86350</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2016-09-15T17:42:46Z</dc:date>
    </item>
  </channel>
</rss>

