<?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: Comparing two searches from separate time ranges while still having a clean chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473521#M192385</link>
    <description>&lt;P&gt;That helped a lot and I will definitely be using that eval-case command in the future.&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 16:25:33 GMT</pubDate>
    <dc:creator>bencooper1</dc:creator>
    <dc:date>2019-11-04T16:25:33Z</dc:date>
    <item>
      <title>Comparing two searches from separate time ranges while still having a clean chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473518#M192382</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I am trying to compare two time windows in the same index but I would like the chart comparing them to be based on a specified name of those time ranges rather than on time.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;Release_A = October 2nd&lt;BR /&gt;
Release_B = September 20th&lt;/P&gt;

&lt;P&gt;(index=.... url=* earliest="10/02/2019:00:00:00" latest="10/02/2019:23:59:59") OR (index=... url=* earliest="09/20/2019:00:00:00" latest="09/20/2019:23:59:59")&lt;BR /&gt;
| chart avg(seconds) by _time span=1d&lt;/P&gt;

&lt;P&gt;I want the chart x-axis values to be Release_A and Release_B rather than a timeline.&lt;BR /&gt;
Any advice on how to do this would be very appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473518#M192382</guid>
      <dc:creator>bencooper1</dc:creator>
      <dc:date>2020-09-30T02:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two searches from separate time ranges while still having a clean chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473519#M192383</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;(index=.... url= earliest="10/02/2019:00:00:00" latest="10/03/2019:00:00:00") OR (index=... url= earliest="09/20/2019:00:00:00" latest="09/21/2019:00:00:00")
| timechart avg(seconds)  span=1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi,  try &lt;CODE&gt;timechart&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 20:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473519#M192383</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-01T20:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two searches from separate time ranges while still having a clean chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473520#M192384</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=.... url= earliest="10/02/2019:00:00:00" latest="10/02/2019:23:59:59") OR (index=... url= earliest="09/20/2019:00:00:00" latest="09/20/2019:23:59:59") 
| chart avg(seconds) by _time span=1d 
| convert ctime(_time) timeformat="%B %d"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=.... url= earliest="10/02/2019:00:00:00" latest="10/02/2019:23:59:59") OR (index=... url= earliest="09/20/2019:00:00:00" latest="09/20/2019:23:59:59") 
| eval time=case(date_mday="2","Release_A",date_mday="20","Release_B") 
| chart avg(seconds) by time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 20:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473520#M192384</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-11-01T20:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two searches from separate time ranges while still having a clean chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473521#M192385</link>
      <description>&lt;P&gt;That helped a lot and I will definitely be using that eval-case command in the future.&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:25:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-two-searches-from-separate-time-ranges-while-still/m-p/473521#M192385</guid>
      <dc:creator>bencooper1</dc:creator>
      <dc:date>2019-11-04T16:25:33Z</dc:date>
    </item>
  </channel>
</rss>

