<?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 Results from Subquery in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329982#M4802</link>
    <description>&lt;P&gt;We are feeding logs from a messaging middleware into our Splunk installation.  Input and output logs for this middleware are respectively being stored with &lt;CODE&gt;sourcetype&lt;/CODE&gt; flags &lt;CODE&gt;app_input&lt;/CODE&gt; and &lt;CODE&gt;app_output&lt;/CODE&gt;, with each &lt;CODE&gt;app_input&lt;/CODE&gt;/&lt;CODE&gt;app_output&lt;/CODE&gt; pair containing a common, alphanumeric &lt;CODE&gt;transactionid&lt;/CODE&gt; contained in square brackets.  We're trying to build a single line search that will result in a listing of ALL I/O log pairs for which either the &lt;CODE&gt;app_input&lt;/CODE&gt; or &lt;CODE&gt;app_output&lt;/CODE&gt; contains a specified string.&lt;/P&gt;

&lt;P&gt;Attempting to solve this, we started with &lt;CODE&gt;sourcetype=app_* some_search | rex "\[(?&amp;lt;transactionid&amp;gt;[A-Za-z0-9]+)\]\"&lt;/CODE&gt;.  Now, we'd like the search to continue using each extracted &lt;CODE&gt;transactionid&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;We've tried queries w. subqueries along the lines of &lt;CODE&gt;sourcetype=app_* [ search sourcetype=app_* some_search | rex "\[(?&amp;lt;transactionid&amp;gt;[A-Za-z0-9]+)\]" | rename transactionid as query&lt;/CODE&gt; and others without luck.&lt;/P&gt;

&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you in advance,&lt;/P&gt;

&lt;P&gt;Harold Falkmeyer&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2017 07:43:38 GMT</pubDate>
    <dc:creator>hfalkmeyer</dc:creator>
    <dc:date>2017-06-08T07:43:38Z</dc:date>
    <item>
      <title>Using Results from Subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329982#M4802</link>
      <description>&lt;P&gt;We are feeding logs from a messaging middleware into our Splunk installation.  Input and output logs for this middleware are respectively being stored with &lt;CODE&gt;sourcetype&lt;/CODE&gt; flags &lt;CODE&gt;app_input&lt;/CODE&gt; and &lt;CODE&gt;app_output&lt;/CODE&gt;, with each &lt;CODE&gt;app_input&lt;/CODE&gt;/&lt;CODE&gt;app_output&lt;/CODE&gt; pair containing a common, alphanumeric &lt;CODE&gt;transactionid&lt;/CODE&gt; contained in square brackets.  We're trying to build a single line search that will result in a listing of ALL I/O log pairs for which either the &lt;CODE&gt;app_input&lt;/CODE&gt; or &lt;CODE&gt;app_output&lt;/CODE&gt; contains a specified string.&lt;/P&gt;

&lt;P&gt;Attempting to solve this, we started with &lt;CODE&gt;sourcetype=app_* some_search | rex "\[(?&amp;lt;transactionid&amp;gt;[A-Za-z0-9]+)\]\"&lt;/CODE&gt;.  Now, we'd like the search to continue using each extracted &lt;CODE&gt;transactionid&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;We've tried queries w. subqueries along the lines of &lt;CODE&gt;sourcetype=app_* [ search sourcetype=app_* some_search | rex "\[(?&amp;lt;transactionid&amp;gt;[A-Za-z0-9]+)\]" | rename transactionid as query&lt;/CODE&gt; and others without luck.&lt;/P&gt;

&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you in advance,&lt;/P&gt;

&lt;P&gt;Harold Falkmeyer&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 07:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329982#M4802</guid>
      <dc:creator>hfalkmeyer</dc:creator>
      <dc:date>2017-06-08T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Results from Subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329983#M4803</link>
      <description>&lt;P&gt;for this subsearch, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=app_* [ search sourcetype=app_* some_search | rex "\[(?&amp;lt;transactionid&amp;gt;[A-Za-z0-9]+)\]" | rename transactionid as query|table query|format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as long as &lt;CODE&gt;query&lt;/CODE&gt; is in your &lt;CODE&gt;sourcetype=app_*&lt;/CODE&gt;. your subsearch needs to end with a field name that is in the base search.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329983#M4803</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-08T14:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Results from Subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329984#M4804</link>
      <description>&lt;P&gt;Worked like a charm.  The missing component from my attempts was the &lt;CODE&gt;table query&lt;/CODE&gt;.  Thank you VERY much!!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 04:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Results-from-Subquery/m-p/329984#M4804</guid>
      <dc:creator>hfalkmeyer</dc:creator>
      <dc:date>2017-06-09T04:57:56Z</dc:date>
    </item>
  </channel>
</rss>

