<?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: Multiple REX from single search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-REX-from-single-search/m-p/21298#M3487</link>
    <description>&lt;P&gt;Perhaps something like "disposition=(?P&lt;ERRORODE&gt;[^\n,]*),?" will help.&lt;/ERRORODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2012 18:56:43 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2012-07-30T18:56:43Z</dc:date>
    <item>
      <title>Multiple REX from single search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-REX-from-single-search/m-p/21297#M3486</link>
      <description>&lt;P&gt;I have some sendmail logs that send the following different entries within the data streams:&lt;/P&gt;

&lt;P&gt;disposition=abc123&lt;/P&gt;

&lt;P&gt;disposition=abc123, followed by some stuff.&lt;/P&gt;

&lt;P&gt;disposition=xyz-123&lt;/P&gt;

&lt;P&gt;disposition=xyz-123, followed by some stuff.&lt;/P&gt;

&lt;P&gt;And I need to build one REX statement that allows me to call what comes after the "=" sign an errorcode. How can define multiple REX's from one search string?&lt;/P&gt;

&lt;P&gt;Here is an example that works, but also pulls too much information after location the errorcode.&lt;/P&gt;

&lt;P&gt;index=sendmail | rex "disposition=(?&lt;ERRORODE&gt;.*?)$"    &amp;lt; ---sorry, the editor won't define my angle bracket, word, angle bracket that is between the first ? and the second?&lt;/ERRORODE&gt;&lt;/P&gt;

&lt;P&gt;It pulls everything after the errorcode including addtional characters, words and numbers and I need to grab &lt;STRONG&gt;strong text&lt;/STRONG&gt; only.&lt;/P&gt;

&lt;P&gt;Any thoughts on how to build a multi REX statement within one search query and defining each found errorcode as an incident?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-REX-from-single-search/m-p/21297#M3486</guid>
      <dc:creator>MasterOogway</dc:creator>
      <dc:date>2012-07-30T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple REX from single search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-REX-from-single-search/m-p/21298#M3487</link>
      <description>&lt;P&gt;Perhaps something like "disposition=(?P&lt;ERRORODE&gt;[^\n,]*),?" will help.&lt;/ERRORODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:56:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-REX-from-single-search/m-p/21298#M3487</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2012-07-30T18:56:43Z</dc:date>
    </item>
  </channel>
</rss>

