<?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 in one graph in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96654#M20143</link>
    <description>&lt;P&gt;I have read it and came up with this:&lt;BR /&gt;
host="stats" earliest=-0d@d latest=now | xmlkv | eval ReportKey="today" | append [ search host="stats" earliest=-1d@d latest=-0d@d | xmlkv | eval ReportKey="yesterday" | eval _time=_time+86400 ] | timechart span=10m max(usersCount) by ReportKey&lt;/P&gt;

&lt;P&gt;however, the graph does not look right - it shows all of today and then a small portiion of yesterday AFTER today instead in parallel&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:04:12 GMT</pubDate>
    <dc:creator>nirt</dc:creator>
    <dc:date>2020-09-28T12:04:12Z</dc:date>
    <item>
      <title>multiple searches in one graph</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96652#M20141</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I need to create a graph that contains 2 searches, to compare today's search and last week's search&lt;BR /&gt;
I know there are lot of guides here that explain how to do it, however I'm quite a new splunk user and have tried for the past hours to try and get the graph to show properly however I was not able to product such working search&lt;BR /&gt;
I was wondering if you guys could assist me in creating such search&lt;BR /&gt;
My common search is as following:&lt;BR /&gt;
host="stats" | xmlkv | timechart max(usersCount)&lt;/P&gt;

&lt;P&gt;Thank you guys in advance&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96652#M20141</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2012-07-12T12:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: multiple searches in one graph</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96653#M20142</link>
      <description>&lt;P&gt;Have you read through this?  It gives a detailed walk through of one way to do it?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2012/02/19/compare-two-time-ranges-in-one-report/"&gt;http://blogs.splunk.com/2012/02/19/compare-two-time-ranges-in-one-report/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 13:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96653#M20142</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-07-12T13:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiple searches in one graph</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96654#M20143</link>
      <description>&lt;P&gt;I have read it and came up with this:&lt;BR /&gt;
host="stats" earliest=-0d@d latest=now | xmlkv | eval ReportKey="today" | append [ search host="stats" earliest=-1d@d latest=-0d@d | xmlkv | eval ReportKey="yesterday" | eval _time=_time+86400 ] | timechart span=10m max(usersCount) by ReportKey&lt;/P&gt;

&lt;P&gt;however, the graph does not look right - it shows all of today and then a small portiion of yesterday AFTER today instead in parallel&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96654#M20143</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2020-09-28T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: multiple searches in one graph</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96655#M20144</link>
      <description>&lt;P&gt;In the tip you have posted it says there is an issue displaying all content of an append search for versions prior to 4.3.1, however I'm using 4.3.3 and still have that issue&lt;/P&gt;

&lt;P&gt;this search worked for me: compared yesterday to 2 days ago:&lt;BR /&gt;
host="stats" earliest=-1d@d latest=-0d@d | xmlkv | eval ReportKey="today" | append maxtime=100 [ search host="stats" earliest=-2d@d latest=-1d@d | xmlkv | eval ReportKey="yesterday" | eval new_time=_time+86400] | eval _time=if(isnotnull(new_time), new_time, _time) | timechart span=10m max(usersCount) by ReportKey&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96655#M20144</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2020-09-28T12:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: multiple searches in one graph</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96656#M20145</link>
      <description>&lt;P&gt;I'm having problems showing the graph properly when comparing last week's day to today&lt;BR /&gt;
Each graph shows independatly instead of together&lt;BR /&gt;
the following search is being used:&lt;/P&gt;

&lt;P&gt;host="stats" earliest=-0d@d latest=+1d@d | xmlkv | eval ReportKey="today" | append maxtime=100 [ search host="stats" earliest=-7d@d latest=-6d@d | xmlkv | eval ReportKey="same day last week" | eval new_time=_time+86400] | eval _time=if(isnotnull(new_time), new_time, _time) | &lt;BR /&gt;
timechart span=20m max(usersCount) by ReportKey&lt;/P&gt;

&lt;P&gt;also tried  eval new_time=_time+60*60*24*7&lt;/P&gt;

&lt;P&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96656#M20145</guid>
      <dc:creator>nirt</dc:creator>
      <dc:date>2020-09-28T12:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: multiple searches in one graph</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96657#M20146</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Comparing week-over-week results used to a pain in Splunk, with complex date calculations. No more.  Now there is a better way.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I wrote a convenient search command called "&lt;A href="http://apps.splunk.com/app/1645/"&gt;timewrap&lt;/A&gt;" that does it all, for arbitrary time periods.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart count span=1d | timewrap w
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That's it!&lt;/P&gt;

&lt;P&gt;&lt;A href="http://apps.splunk.com/app/1645/"&gt;http://apps.splunk.com/app/1645/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 19:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/multiple-searches-in-one-graph/m-p/96657#M20146</guid>
      <dc:creator>carasso</dc:creator>
      <dc:date>2014-05-21T19:01:47Z</dc:date>
    </item>
  </channel>
</rss>

