<?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: Join the best option? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87951#M22490</link>
    <description>&lt;P&gt;As you mentioned in the mail post your search gives you the failed job list.&lt;/P&gt;

&lt;P&gt;Just write your search which gives you the all the events&lt;/P&gt;

&lt;P&gt;your search jobid=[|search failed jobid]. this will only give you the failed job events.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2013 19:02:33 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2013-07-08T19:02:33Z</dc:date>
    <item>
      <title>Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87941#M22480</link>
      <description>&lt;P&gt;I have a search that finds failed jobs from my logs. Each of those failed jobs has a job number. I'd like to then take those job numbers and get all the log lines that contain one of those job numbers. Whats the best way to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87941#M22480</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T18:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87942#M22481</link>
      <description>&lt;P&gt;This means you have more than one log line with the job number for each failed job right?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87942#M22481</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-07-08T18:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87943#M22482</link>
      <description>&lt;P&gt;Thats correct&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87943#M22482</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T18:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87944#M22483</link>
      <description>&lt;P&gt;perhaps some sort of IF statement?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87944#M22483</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T18:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87945#M22484</link>
      <description>&lt;P&gt;First extract the job number fields and then use a  subsearch, filter out the failed job events.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87945#M22484</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T18:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87946#M22485</link>
      <description>&lt;P&gt;Actually I would say that append might be better.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87946#M22485</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-07-08T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87947#M22486</link>
      <description>&lt;P&gt;Need more details then that...&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87947#M22486</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87948#M22487</link>
      <description>&lt;P&gt;Append a subsearch to the search then sort by job number. I'll try and make an example.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87948#M22487</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-07-08T18:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87949#M22488</link>
      <description>&lt;P&gt;Yeah I am have problems getting the subsearch to only give the job numbers that failed. linu1988 has the best idea I can think of.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87949#M22488</guid>
      <dc:creator>cpeteman</dc:creator>
      <dc:date>2013-07-08T18:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87950#M22489</link>
      <description>&lt;P&gt;I only want the failed job events how do I achieve that with what linu1988 suggested?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 18:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87950#M22489</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T18:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87951#M22490</link>
      <description>&lt;P&gt;As you mentioned in the mail post your search gives you the failed job list.&lt;/P&gt;

&lt;P&gt;Just write your search which gives you the all the events&lt;/P&gt;

&lt;P&gt;your search jobid=[|search failed jobid]. this will only give you the failed job events.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87951#M22490</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T19:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87952#M22491</link>
      <description>&lt;P&gt;I don't want to manually have to type the failed jobid I'd like to see it be dynamic off of the jobid's that were returned by looking for ones that have failed.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87952#M22491</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T19:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87953#M22492</link>
      <description>&lt;P&gt;According to your post "I have a search that finds failed jobs from my logs." what does that mean? how do you know that it's a failed job event, could you tell us?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87953#M22492</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T19:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87954#M22493</link>
      <description>&lt;P&gt;I search: index=myindex source=jobs "Failed Job"&lt;/P&gt;

&lt;P&gt;one of the fields that gets extracted is jobId but this obviously only gets me that one line with Failed Job not all the lines for that job.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87954#M22493</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T19:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87955#M22494</link>
      <description>&lt;P&gt;Yes that means you will get the job id in your events,  put the search in the subsearch index=myindex source=jobs jobid=[index=myindex source=jobs "Failed Job"|fields jobid]&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 20:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87955#M22494</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T20:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87956#M22495</link>
      <description>&lt;P&gt;It won't let me do jobid=[ &lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: Comparator '=' has an invalid term on the right hand side.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 20:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87956#M22495</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T20:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87957#M22496</link>
      <description>&lt;P&gt;index=myindex source=jobs jobid=[|search index=myindex source=jobs "Failed Job"|fields jobid]&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 20:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87957#M22496</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T20:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87958#M22497</link>
      <description>&lt;P&gt;That doesn't work I don't think you can have jobid = and then a bracket.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 20:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87958#M22497</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2013-07-08T20:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87959#M22498</link>
      <description>&lt;P&gt;You will figure it out.Please use this for reference: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Storm/Storm/User/Useasubsearch"&gt;http://docs.splunk.com/Documentation/Storm/Storm/User/Useasubsearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 21:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87959#M22498</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-08T21:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join the best option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87960#M22499</link>
      <description>&lt;P&gt;Assuming that something like this is your search to find the failed jobs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex "Failed Job"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use it as a subsearch to provide a key (e.g. the Job Number) for another search.  Then you can use transaction to group the events together by Job Number, if desired.  So assuming the above, and assuming that your Job Number field in Splunk is something like jobNumber, try a search like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex [search index=myindex "Failed Job" | fields jobNumber | dedup jobNumber] | transaction jobNumber
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The sub search provides a list of values to your main search that are the equivalent of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(jobNumber=000001 OR jobNumber=000002 OR jobNumber=000003 etc...)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;  Can you post your search commands?  I'm wondering if the outer search is somehow excluding the results.  Also, I can't add comments from my workplace for some reason, I can only edit my response, all my suggestions will be added here as edits.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 01:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-the-best-option/m-p/87960#M22499</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2013-07-09T01:29:55Z</dc:date>
    </item>
  </channel>
</rss>

