<?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: How to join two searches? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458327#M129411</link>
    <description>&lt;P&gt;Yes all event should have a status code. When i tried running this, nothing shows up.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2018 14:27:43 GMT</pubDate>
    <dc:creator>skphi13</dc:creator>
    <dc:date>2018-07-27T14:27:43Z</dc:date>
    <item>
      <title>How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458324#M129408</link>
      <description>&lt;P&gt;I need help joining the following 2 searches.&lt;/P&gt;

&lt;P&gt;Search 1:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;app="atlas" source="/usr/local/homeaway/atlas-production/logs/*" index="aws_prod_applogs" titan | stats avg(*responseTime) by date_mday&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Search 2:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;app="atlas" source="/usr/local/homeaway/atlas-production/logs/*" index="aws_prod_applogs" titan statusCode=200 | stats avg(*responseTime) by date_mday&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I tried using &lt;STRONG&gt;Join&lt;/STRONG&gt; and &lt;STRONG&gt;Append&lt;/STRONG&gt; but it's no working.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458324#M129408</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2020-09-29T20:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458325#M129409</link>
      <description>&lt;P&gt;I believe with stats you need &lt;CODE&gt;appendcols&lt;/CODE&gt; not &lt;CODE&gt;append&lt;/CODE&gt;.   For instance:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| appendcols [search app="atlas" source="/usr/local/homeaway/atlas-production/logs/*" index="aws_prod_applogs" titan statusCode=200 | stats avg(*responseTime) by date_mday]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 18:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458325#M129409</guid>
      <dc:creator>hortonew</dc:creator>
      <dc:date>2018-07-26T18:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458326#M129410</link>
      <description>&lt;P&gt;Assuming all your events have a status code,  you can do it one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;app="atlas" source="/usr/local/homeaway/atlas-production/logs/*" index="aws_prod_applogs" titan statusCode=* 
|  eventstats sum(*responseTime) as total* count as count_events by date_mday
|  where status=200
| stats max(total*) as total* max(count_events) as count_events avg(*responseTime) as avg_*responseTime_200 by status date_mday
|  foreach total* 
    [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;/count_events]
|  rename total* as avg*_all_status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 19:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458326#M129410</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-26T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458327#M129411</link>
      <description>&lt;P&gt;Yes all event should have a status code. When i tried running this, nothing shows up.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458327#M129411</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458328#M129412</link>
      <description>&lt;P&gt;Ah sorry in my test search I had just status. Change status to statsCode and you should be good to go&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458328#M129412</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-27T14:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458329#M129413</link>
      <description>&lt;P&gt;so it does return events but no statistics or visualization. &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458329#M129413</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458330#M129414</link>
      <description>&lt;P&gt;Er that has a stats command in there, it can't return events unless you're running in verbose mode, in which case just switch to the relevant tab&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458330#M129414</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-27T14:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458331#M129415</link>
      <description>&lt;P&gt;You should see something like this:&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5426iEA2F7119C52667BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458331#M129415</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-27T14:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458332#M129416</link>
      <description>&lt;P&gt;this is what i get &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5427iFB268E1FCB75214E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458332#M129416</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458333#M129417</link>
      <description>&lt;P&gt;i switch it to smart mode and ran the search again and nothing. I even change the timeframe to the last 7 days. I have posted the picture of the results but it's awaiting moderator approval. &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458333#M129417</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458334#M129418</link>
      <description>&lt;P&gt;it's showing 0 events, but i know that's incorrect&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458334#M129418</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T15:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458335#M129419</link>
      <description>&lt;P&gt;OK, step back through the search. &lt;/P&gt;

&lt;P&gt;ie I assume you get events for this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; app="atlas" source="/usr/local/homeaway/atlas-production/logs/*" index="aws_prod_applogs" titan statusCode=* 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So just keep adding the search commands until you find the one that breaks it. Most likely it is a misnamed field&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458335#M129419</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-27T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458336#M129420</link>
      <description>&lt;P&gt;so i ran the following in smart mode&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;app="atlas" source="/usr/local/homeaway/atlas-production/logs/&lt;EM&gt;" index="aws_prod_applogs" titan statusCode=&lt;/EM&gt; | eventstats sum(&lt;EM&gt;responseTime) as total&lt;/EM&gt; count as count_events by date_mday&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;It returns a bunch of events but no stats...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458336#M129420</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2020-09-29T20:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458337#M129421</link>
      <description>&lt;P&gt;Eventstats will add the stats to each event - this is so you can calculate the averages of all events even  after dropping the others &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458337#M129421</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-27T15:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458338#M129422</link>
      <description>&lt;P&gt;yea so when i ran the serach with &lt;STRONG&gt;eventstats&lt;/STRONG&gt; no statistics show up in the results. But when i ran it with &lt;STRONG&gt;stats&lt;/STRONG&gt; the statistics shows up in the result.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 16:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458338#M129422</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T16:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458339#M129423</link>
      <description>&lt;P&gt;See in the stats command you have &lt;CODE&gt;by status&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Change that to statusCode&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 16:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458339#M129423</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2018-07-27T16:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458340#M129424</link>
      <description>&lt;P&gt;it works! thanks for pointing out that small details.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 16:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches/m-p/458340#M129424</guid>
      <dc:creator>skphi13</dc:creator>
      <dc:date>2018-07-27T16:46:09Z</dc:date>
    </item>
  </channel>
</rss>

