<?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: Search based on response from another search query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690765#M235260</link>
    <description>&lt;P&gt;Have you tried a subsearch?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex "TTY" [ search index=myindex 
  cs2k_transaction_id_in_error="CHG063339403031900 major_code="ERROR" 
  |  rex field=_raw "Job Id: (?&amp;lt;jobId&amp;gt;.*?)\." 
  | table jobId ]
&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 14 Jun 2024 21:45:47 GMT</pubDate>
    <dc:creator>P_vandereerden</dc:creator>
    <dc:date>2024-06-14T21:45:47Z</dc:date>
    <item>
      <title>Search based on response from another search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690764#M235259</link>
      <description>&lt;P&gt;First Splunk query gives me a value in a table. The value is a jobId. I want to use this jobId in another search query like a second one. Can we join them in Splunk way?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myindex cs2k_transaction_id_in_error="CHG063339403031900 major_code="ERROR" |  rex field=_raw "Job Id: (?&amp;lt;jobId&amp;gt;.*?)\." | table jobId

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;index=myindex "TTY"&amp;nbsp; "jobId"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 22:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690764#M235259</guid>
      <dc:creator>stagare</dc:creator>
      <dc:date>2024-06-14T22:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on response from another search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690765#M235260</link>
      <description>&lt;P&gt;Have you tried a subsearch?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex "TTY" [ search index=myindex 
  cs2k_transaction_id_in_error="CHG063339403031900 major_code="ERROR" 
  |  rex field=_raw "Job Id: (?&amp;lt;jobId&amp;gt;.*?)\." 
  | table jobId ]
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Jun 2024 21:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690765#M235260</guid>
      <dc:creator>P_vandereerden</dc:creator>
      <dc:date>2024-06-14T21:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on response from another search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690767#M235262</link>
      <description>&lt;P&gt;Thanks for the reply, yes, I have tried that already. It does not work. The response (jobId) is in a table so that wont allow this subsearch.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 22:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690767#M235262</guid>
      <dc:creator>stagare</dc:creator>
      <dc:date>2024-06-14T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on response from another search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690770#M235264</link>
      <description>&lt;P&gt;Ah.&lt;BR /&gt;I suspect this is more about the rex expression than the table.&lt;BR /&gt;&lt;BR /&gt;You could try a join:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex TTY | rex field=_raw "Job Id: (?&amp;lt;jobId&amp;gt;.*?)\."
| join left=L right=R where L.jobId=R.jobId [search
index=myindex cs2k_transaction_id_in_error="CHG063339403031900" major_code="ERROR" | rex field=_raw "Job Id: (?&amp;lt;jobId&amp;gt;.*?)\." | table jobId ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 23:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690770#M235264</guid>
      <dc:creator>P_vandereerden</dc:creator>
      <dc:date>2024-06-14T23:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on response from another search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690834#M235286</link>
      <description>&lt;P&gt;Hi Paul, this join looks to&amp;nbsp; be working. Thank you very much..&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 14:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-response-from-another-search-query/m-p/690834#M235286</guid>
      <dc:creator>stagare</dc:creator>
      <dc:date>2024-06-16T14:21:17Z</dc:date>
    </item>
  </channel>
</rss>

