<?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 graph details in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62125#M3233</link>
    <description>&lt;P&gt;index=MyApp earliest=-30d@d-14h | where (date_hour&amp;gt;=10 AND date_hour&amp;lt;22) | bucket _time span=1d | stats count by _time | sort - _time | append [ search index=MyApp earliest=-30d@d-2h | where(date_hour&amp;lt;10 or date_hour&amp;gt;=22) | eval _time=if(date_hour&amp;lt;10, _time-86400, _time) | bucket _time span=1d | stats count by _time | sort - _time]&lt;/P&gt;

&lt;P&gt;I'm using the query above to generate a graph of the number of tickets for two different support staff shifts.  One shift is from 10:00 AM through 10:00 PM.  The other shift is from 10:00 PM to 10:00 AM.  Ultimately, I want two line graphs of the number of tickets each staff gets (to compare against each other).&lt;/P&gt;

&lt;P&gt;The graph however is not helpful.  Is there a way that I can provide different colors for the lines?  Also, the legend has a single entry - "Count".  Is there a way to modify or change the legend?  Finally, there appears to be a third line (I'm guessing an average??) that appears as well.  I don't want that.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:49:07 GMT</pubDate>
    <dc:creator>DTERM</dc:creator>
    <dc:date>2020-09-28T09:49:07Z</dc:date>
    <item>
      <title>graph details</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62125#M3233</link>
      <description>&lt;P&gt;index=MyApp earliest=-30d@d-14h | where (date_hour&amp;gt;=10 AND date_hour&amp;lt;22) | bucket _time span=1d | stats count by _time | sort - _time | append [ search index=MyApp earliest=-30d@d-2h | where(date_hour&amp;lt;10 or date_hour&amp;gt;=22) | eval _time=if(date_hour&amp;lt;10, _time-86400, _time) | bucket _time span=1d | stats count by _time | sort - _time]&lt;/P&gt;

&lt;P&gt;I'm using the query above to generate a graph of the number of tickets for two different support staff shifts.  One shift is from 10:00 AM through 10:00 PM.  The other shift is from 10:00 PM to 10:00 AM.  Ultimately, I want two line graphs of the number of tickets each staff gets (to compare against each other).&lt;/P&gt;

&lt;P&gt;The graph however is not helpful.  Is there a way that I can provide different colors for the lines?  Also, the legend has a single entry - "Count".  Is there a way to modify or change the legend?  Finally, there appears to be a third line (I'm guessing an average??) that appears as well.  I don't want that.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62125#M3233</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2020-09-28T09:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: graph details</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62126#M3234</link>
      <description>&lt;P&gt;First, when you do a 'stats' you can use the as option, 'stats count as "DayShift" by _time'.&lt;/P&gt;&lt;BR /&gt;
I am thinking that I would redo your query a bit.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=MyApp earliest=-30d@d-14h | eval Shift=if(10&amp;lt;=date_hour and date_hour&amp;lt;22,"Day","Night") | timechart span=1d count by Shift
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Aug 2011 13:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62126#M3234</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2011-08-23T13:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: graph details</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62127#M3235</link>
      <description>&lt;P&gt;That is perfect.  Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 17:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/graph-details/m-p/62127#M3235</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2011-08-23T17:05:32Z</dc:date>
    </item>
  </channel>
</rss>

