<?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 How to combine the results of my two searches in one graph? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195872#M56470</link>
    <description>&lt;P&gt;I have these two simple searches and I would like to combine them on one graph to display both "passed" and "failed" data. What is the most efficient way to do that? I would like to take this as an example for my future use.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=all-mac host=eng* "unkown MAC" OR "No MAC " OR "mismatch MAC" | timechart count as Failed span=1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=al-mac host=eng* "match for MAC" | timechart count as Passed span=1d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Jan 2015 22:11:15 GMT</pubDate>
    <dc:creator>raindrop18</dc:creator>
    <dc:date>2015-01-19T22:11:15Z</dc:date>
    <item>
      <title>How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195872#M56470</link>
      <description>&lt;P&gt;I have these two simple searches and I would like to combine them on one graph to display both "passed" and "failed" data. What is the most efficient way to do that? I would like to take this as an example for my future use.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=all-mac host=eng* "unkown MAC" OR "No MAC " OR "mismatch MAC" | timechart count as Failed span=1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=al-mac host=eng* "match for MAC" | timechart count as Passed span=1d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Jan 2015 22:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195872#M56470</guid>
      <dc:creator>raindrop18</dc:creator>
      <dc:date>2015-01-19T22:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195873#M56471</link>
      <description>&lt;P&gt;Something like this should do..&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
index=all-mac host=eng* | eval STATUS= if(searchmatch("unkown MAC"), "Failed", (if(searchmatch("No MAC"),"Failed", if(searchmatch("No MAC"), "Failed", if(searchmatch("match for MAC"), "Passed","OTHER"))))) | timechart span=1d count by STATUS&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 04:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195873#M56471</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-01-20T04:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195874#M56472</link>
      <description>&lt;P&gt;thanks much for your response! do you mind if you can tell me how "Passed" evaluate? the search key for passed is "match for MAC" so i am curious about that.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 16:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195874#M56472</guid>
      <dc:creator>raindrop18</dc:creator>
      <dc:date>2015-01-20T16:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195875#M56473</link>
      <description>&lt;P&gt;I've edited my answer to consider "match for MAC" explicitly for "Passed"&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 16:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195875#M56473</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-01-20T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195876#M56474</link>
      <description>&lt;P&gt;thanks, it's working perfectly. something try to remove is "OTHER" is that must be there to work. i am only need Failed and Passed on my graph.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 17:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195876#M56474</guid>
      <dc:creator>raindrop18</dc:creator>
      <dc:date>2015-01-20T17:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195877#M56475</link>
      <description>&lt;P&gt;If you want to compare times, week over week for example,  in your timeline there is a great app that helps with that, timewrap.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://apps.splunk.com/app/1645/"&gt;https://apps.splunk.com/app/1645/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 18:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195877#M56475</guid>
      <dc:creator>trsavela</dc:creator>
      <dc:date>2015-01-20T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195878#M56476</link>
      <description>&lt;P&gt;Give this one a try which will not yield the "OTHERs"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=all-mac host=eng* "unkown MAC" OR "No MAC " OR "mismatch MAC" OR "match for MAC" | eval STATUS= if(searchmatch("match for MAC"), "Passed", "Failed") | timechart span=1d count by STATUS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically, base search itself filters unwanted events and this makes the STATUS calculation also simple.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 19:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195878#M56476</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-01-20T19:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195879#M56477</link>
      <description>&lt;P&gt;like @somesoni2 suggested, you can prefilter the data within your base search by adding &lt;PRE&gt;"unkown MAC" OR "No MAC " OR "mismatch MAC" OR "match for MAC"&lt;/PRE&gt; or you can also do &lt;PRE&gt;STATUS!="OTHER" just before your timechart&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 21:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195879#M56477</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-01-20T21:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine the results of my two searches in one graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195880#M56478</link>
      <description>&lt;P&gt;thanks much, work as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 21:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-the-results-of-my-two-searches-in-one-graph/m-p/195880#M56478</guid>
      <dc:creator>raindrop18</dc:creator>
      <dc:date>2015-01-20T21:14:26Z</dc:date>
    </item>
  </channel>
</rss>

