<?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 using rex inside map search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561933#M195436</link>
    <description>&lt;P&gt;index=error sourcetype=error_log "Retry counter reached"&lt;BR /&gt;| makemv delim="=",values&lt;BR /&gt;| dedup errId&lt;BR /&gt;| table errId&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| map search="search index=error sourcetype=error_log $errId$ "Caused by" | head 1 | rex field=_raw&amp;nbsp; "MessageText=(?&amp;lt;FailureReason&amp;gt;.+) Please report to system admin"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| eval FailureReason=\"$FailureReason$\"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| eval errId=\"$errId$\""&lt;BR /&gt;| table errId, FailureReason&lt;/P&gt;&lt;P&gt;The above query does not show any results. If i run the searches separately, i do see the output. What is wrong with the query please?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 17:22:31 GMT</pubDate>
    <dc:creator>a2021cdev</dc:creator>
    <dc:date>2021-08-03T17:22:31Z</dc:date>
    <item>
      <title>using rex inside map search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561933#M195436</link>
      <description>&lt;P&gt;index=error sourcetype=error_log "Retry counter reached"&lt;BR /&gt;| makemv delim="=",values&lt;BR /&gt;| dedup errId&lt;BR /&gt;| table errId&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| map search="search index=error sourcetype=error_log $errId$ "Caused by" | head 1 | rex field=_raw&amp;nbsp; "MessageText=(?&amp;lt;FailureReason&amp;gt;.+) Please report to system admin"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| eval FailureReason=\"$FailureReason$\"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| eval errId=\"$errId$\""&lt;BR /&gt;| table errId, FailureReason&lt;/P&gt;&lt;P&gt;The above query does not show any results. If i run the searches separately, i do see the output. What is wrong with the query please?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 17:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561933#M195436</guid>
      <dc:creator>a2021cdev</dc:creator>
      <dc:date>2021-08-03T17:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: using rex inside map search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561939#M195438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237089"&gt;@a2021cdev&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Since you are searching same index and sourcetype, you don't need map.&amp;nbsp; Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=error sourcetype=error_log "Retry counter reached" OR "Caused by"
| rex  "MessageText=(?&amp;lt;FailureReason&amp;gt;.+) Please report to system admin"
| stats max(FailureReason) by errId&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561939#M195438</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-08-03T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: using rex inside map search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561942#M195441</link>
      <description>&lt;P&gt;The query does not meet my requirement. It only lists errId and not the failure reason.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561942#M195441</guid>
      <dc:creator>a2021cdev</dc:creator>
      <dc:date>2021-08-03T18:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: using rex inside map search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561951#M195442</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The query does not meet my requirement. It does not correlate errId with failure reason.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 20:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-rex-inside-map-search/m-p/561951#M195442</guid>
      <dc:creator>a2021cdev</dc:creator>
      <dc:date>2021-08-03T20:14:25Z</dc:date>
    </item>
  </channel>
</rss>

