<?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: Multiple searches on one chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41883#M9710</link>
    <description>&lt;P&gt;But does work when I enclose the string in quotes (i.e. "SearchNumberTwo")&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2013 20:31:26 GMT</pubDate>
    <dc:creator>motobeats</dc:creator>
    <dc:date>2013-07-03T20:31:26Z</dc:date>
    <item>
      <title>Multiple searches on one chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41879#M9706</link>
      <description>&lt;P&gt;Is it possible to have multiple search results represented on one chart? I have (2) searches defined that extract and return results. I want to coorelate these result sets on the same chart. Is that possible?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 03:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41879#M9706</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2010-09-02T03:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple searches on one chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41880#M9707</link>
      <description>&lt;P&gt;Not directly.&lt;/P&gt;

&lt;P&gt;You need to combine the two searches into a single search, but each search should have some field that is consistent across all results. This may be as simple as an OR clause, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host=foo) OR (host=bar)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In that case, you can split your chart by series "host".&lt;/P&gt;

&lt;P&gt;In more complex scenarios, you might need to resort to something like append to merge the two searches -- then you can artificially add the identifying field, like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=foo | eval series=SearchNumberOne | append [ search host=bar | eval series=SearchNumberTwo ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should give you a field called "searchname" in all results -- in your chart, you can then split on "series" to get both distinct datasets.&lt;/P&gt;

&lt;P&gt;For more information you might want to refer to &lt;A href="http://www.splunk.com/base/Documentation/latest/User/HowSubsearchesWork" rel="nofollow"&gt;How Subsearches Work&lt;/A&gt; in the docs, and look for the &lt;I&gt;append&lt;/I&gt; and &lt;I&gt;set&lt;/I&gt; commands in particular.&lt;/P&gt;

&lt;P&gt;Finally, I don't &lt;I&gt;think&lt;/I&gt; that charting will let you split by multiple fields. If it won't, and you need that, you can also get creative with &lt;I&gt;eval&lt;/I&gt; and string concatenation to generate a new composite field, and split your series on that, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval series="SearchNumberOne - "+src_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Sep 2010 04:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41880#M9707</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-09-02T04:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple searches on one chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41881#M9708</link>
      <description>&lt;P&gt;More detail on graphing multiple split-by fields: &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/User/ReportOfMultipleDataSeries"&gt;http://www.splunk.com/base/Documentation/4.1.5/User/ReportOfMultipleDataSeries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2010 10:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41881#M9708</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-30T10:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple searches on one chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41882#M9709</link>
      <description>&lt;P&gt;This didn't work for me. I do not see a field called "searchname" when I do fieldsummary&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 19:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41882#M9709</guid>
      <dc:creator>motobeats</dc:creator>
      <dc:date>2013-07-03T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple searches on one chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41883#M9710</link>
      <description>&lt;P&gt;But does work when I enclose the string in quotes (i.e. "SearchNumberTwo")&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 20:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiple-searches-on-one-chart/m-p/41883#M9710</guid>
      <dc:creator>motobeats</dc:creator>
      <dc:date>2013-07-03T20:31:26Z</dc:date>
    </item>
  </channel>
</rss>

