<?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 Case insensitive search in rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371028#M109172</link>
    <description>&lt;P&gt;I am having a field such as &lt;CODE&gt;Exception: NullReferenceException&lt;/CODE&gt;. And sometimes, &lt;CODE&gt;EXCEPTION:NullReferenceExcpetion&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I need to capture the exception type with single rex command. I used the following rex, but it is not working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?!)Exception:(?&amp;lt;ErrorType&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong here? Is it possible to achieve? Kindly advice.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 17:46:12 GMT</pubDate>
    <dc:creator>Naren26</dc:creator>
    <dc:date>2018-03-21T17:46:12Z</dc:date>
    <item>
      <title>Case insensitive search in rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371028#M109172</link>
      <description>&lt;P&gt;I am having a field such as &lt;CODE&gt;Exception: NullReferenceException&lt;/CODE&gt;. And sometimes, &lt;CODE&gt;EXCEPTION:NullReferenceExcpetion&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I need to capture the exception type with single rex command. I used the following rex, but it is not working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?!)Exception:(?&amp;lt;ErrorType&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong here? Is it possible to achieve? Kindly advice.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371028#M109172</guid>
      <dc:creator>Naren26</dc:creator>
      <dc:date>2018-03-21T17:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive search in rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371029#M109173</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;P&gt;Here is your regex &lt;CODE&gt;| rex field=t "(?i)Exception(?&amp;lt;lalal&amp;gt;.*)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Try it in this generic example please:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval t="Exception_asdasd" | append [ | makeresults | eval t="EXCEPTION_asdasd"]
| rex field=t "(?i)Exception(?&amp;lt;lalal&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371029#M109173</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive search in rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371030#M109174</link>
      <description>&lt;P&gt;hey @Naren26&lt;BR /&gt;
I think you have mistakenly written &lt;CODE&gt;!&lt;/CODE&gt; instead of &lt;CODE&gt;i&lt;/CODE&gt;.&lt;BR /&gt;
Your regex is correct just change &lt;CODE&gt;(?!)&lt;/CODE&gt; with &lt;CODE&gt;(?i)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So your regex would be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?i)Exception:(?&amp;lt;ErrorType&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 03:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371030#M109174</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-03-22T03:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive search in rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371031#M109175</link>
      <description>&lt;P&gt;Oh my!! Such a silly mistake. Thanks for picking it up.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 04:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Case-insensitive-search-in-rex/m-p/371031#M109175</guid>
      <dc:creator>Naren26</dc:creator>
      <dc:date>2018-03-22T04:59:36Z</dc:date>
    </item>
  </channel>
</rss>

