<?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 &amp;quot;join&amp;quot; two different searches with no common fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310846#M93217</link>
    <description>&lt;P&gt;Great! It works now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2018 18:27:29 GMT</pubDate>
    <dc:creator>CarmineCalo</dc:creator>
    <dc:date>2018-01-18T18:27:29Z</dc:date>
    <item>
      <title>How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310839#M93210</link>
      <description>&lt;P&gt;Splunkers!&lt;/P&gt;

&lt;P&gt;I need to join the follow inputlookup + event searche in order to have, for each AppID, the full set of month buckets given from the time range picker&lt;BR /&gt;
Example:&lt;/P&gt;

&lt;P&gt;Search 1 (Fromm inputlookup):&lt;BR /&gt;
App1&lt;BR /&gt;
App2&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;Search 2 (from index search)&lt;BR /&gt;
Month 1&lt;BR /&gt;
Month 2&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;Desired outcome:&lt;/P&gt;

&lt;P&gt;App1 Month1&lt;BR /&gt;
App1 Month2&lt;BR /&gt;
App1 ...&lt;BR /&gt;
App2 Month1&lt;BR /&gt;
App2 Month2&lt;BR /&gt;
App2 ...&lt;BR /&gt;
...       ...&lt;/P&gt;

&lt;P&gt;Here the code for the two searches&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search 1

| inputlookup DOM_ApplicationCatalogue
| search Status="Production"

| stats count by ApplicationID

Search 2
| search index=Incidents
| dedup id_inc
| timechart span=1mon count
| eval datemonth_year=strftime(_time,"%Y-%m")
| fields count datemonth_year]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help?&lt;/P&gt;

&lt;P&gt;Tks!&lt;BR /&gt;
Carmine&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310839#M93210</guid>
      <dc:creator>CarmineCalo</dc:creator>
      <dc:date>2018-01-18T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310840#M93211</link>
      <description>&lt;P&gt;you can try something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup DOM_ApplicationCatalogue 
| search Status="Production" 
| stats count by ApplicationID 
| appendcols 
    [ search index=Incidents 
    | dedup id_inc 
    | timechart span=1mon count 
    | eval datemonth_year=strftime(_time,"%Y-%m") 
    | fields count datemonth_year]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps !&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310840#M93211</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-18T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310841#M93212</link>
      <description>&lt;P&gt;No, unfortunately it's not working...&lt;/P&gt;

&lt;P&gt;It generate something like (hyp that Month = (Month 1, Month 2)&lt;/P&gt;

&lt;P&gt;App1 Month 1&lt;BR /&gt;
App2 Month 2&lt;BR /&gt;
App3 &lt;BR /&gt;
App4 &lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;Carmine&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310841#M93212</guid>
      <dc:creator>CarmineCalo</dc:creator>
      <dc:date>2018-01-18T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310842#M93213</link>
      <description>&lt;P&gt;if you are interested in just desired outcome then you can try something like this I may be wrong...but you will not be able to show count in this because logically linking count is not possible i think&lt;BR /&gt;&lt;BR /&gt;
app1 month1 &lt;BR /&gt;
app1 month2&lt;BR /&gt;
app2 month1&lt;BR /&gt;
app2 month2&lt;BR /&gt;
..and so on&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup DOM_ApplicationCatalogue 
| search Status="Production" 
| stats count by ApplicationID 
| fields ApplicationID 
| appendcols 
    [ search index=Incidents 
    | dedup id_inc 
    | timechart span=1mon count 
    | eval datemonth_year=strftime(_time,"%Y-%m") 
    | fields datemonth_year ] 
| stats list(ApplicationID) as ApplicationID list(datemonth_year) as datemonth_year 
| mvexpand ApplicationID 
| mvexpand datemonth_year
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310842#M93213</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-18T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310843#M93214</link>
      <description>&lt;P&gt;Now It works!&lt;BR /&gt;
Tks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:35:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310843#M93214</guid>
      <dc:creator>CarmineCalo</dc:creator>
      <dc:date>2018-01-18T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310844#M93215</link>
      <description>&lt;P&gt;Only one additional thing...&lt;/P&gt;

&lt;P&gt;list(ApplicationID) create a field with "only" 100 value inside (my list of APpID is 4k+!)&lt;BR /&gt;
How can i increase the number of values to listed?&lt;BR /&gt;
Unfortunately "limit" option not works with stats...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 15:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310844#M93215</guid>
      <dc:creator>CarmineCalo</dc:creator>
      <dc:date>2018-01-18T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310845#M93216</link>
      <description>&lt;P&gt;Hey use &lt;CODE&gt;values(ApplicationID) as ApplicationID&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 15:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310845#M93216</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-18T15:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to "join" two different searches with no common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310846#M93217</link>
      <description>&lt;P&gt;Great! It works now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 18:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-quot-join-quot-two-different-searches-with-no-common/m-p/310846#M93217</guid>
      <dc:creator>CarmineCalo</dc:creator>
      <dc:date>2018-01-18T18:27:29Z</dc:date>
    </item>
  </channel>
</rss>

