<?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: i have two different searches there is nothing common between both the search, I want to combine both the result as one. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420217#M168525</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=lenovo sourcetype = ticketmaster) OR (sourcetype="remedy_incident" OR sourcetype="remedy_incident_task")
| where (Status IN("Assigned","In-Progress","New","Pending") OR state IN(1,2,14,16,18,22,40,62))
| eval Status = case(sourcetype = ticketmaster, Status, state = "1","New",state = "2","Active",state = "14","Pending",state = "16","Pending",state = "18","Pending",state = "22","Pending",state = "40","Pending",state = "62","Pending") 
| stats dc(No) AS LENOVO_COUNT dc(number) AS REMEDY_COUNT BY Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Jul 2018 01:54:34 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2018-07-05T01:54:34Z</dc:date>
    <item>
      <title>i have two different searches there is nothing common between both the search, I want to combine both the result as one.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420215#M168523</link>
      <description>&lt;P&gt;query 1: index=lenovo sourcetype = ticketmaster | where Status in ("Assigned","In-Progress","New","Pending") &lt;BR /&gt;
| stats dc(No) as LENOVO_COUNT by Status&lt;/P&gt;

&lt;P&gt;query 2: sourcetype="remedy_incident" OR sourcetype="remedy_incident_task" &lt;BR /&gt;
| where state in(1,2,14,16,18,22,40,62) &lt;BR /&gt;
| eval Status = case(state = "1","New",state = "2","Active",state = "14","Pending",state = "16","Pending",state = "18","Pending",state = "22","Pending",state = "40","Pending",state = "62","Pending") | stats dc(number) as REMEDY_COUNT by Status&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420215#M168523</guid>
      <dc:creator>dhirajyadav</dc:creator>
      <dc:date>2020-09-29T20:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: i have two different searches there is nothing common between both the search, I want to combine both the result as one.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420216#M168524</link>
      <description>&lt;P&gt;Hi @dhirajyadav,&lt;/P&gt;

&lt;P&gt;How do you want to combine? What should be the final result?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 00:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420216#M168524</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-05T00:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: i have two different searches there is nothing common between both the search, I want to combine both the result as one.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420217#M168525</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=lenovo sourcetype = ticketmaster) OR (sourcetype="remedy_incident" OR sourcetype="remedy_incident_task")
| where (Status IN("Assigned","In-Progress","New","Pending") OR state IN(1,2,14,16,18,22,40,62))
| eval Status = case(sourcetype = ticketmaster, Status, state = "1","New",state = "2","Active",state = "14","Pending",state = "16","Pending",state = "18","Pending",state = "22","Pending",state = "40","Pending",state = "62","Pending") 
| stats dc(No) AS LENOVO_COUNT dc(number) AS REMEDY_COUNT BY Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 01:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-two-different-searches-there-is-nothing-common-between/m-p/420217#M168525</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-05T01:54:34Z</dc:date>
    </item>
  </channel>
</rss>

