<?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: Time of Day on Y Axis in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165026#M46872</link>
    <description>&lt;P&gt;What does your raw data look like?  The best way to get time charts in Splunk is to generate some events with extracted timestamps and then use the "timechart" search command.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2013 04:50:54 GMT</pubDate>
    <dc:creator>Simon_Fishel</dc:creator>
    <dc:date>2013-12-04T04:50:54Z</dc:date>
    <item>
      <title>Time of Day on Y Axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165024#M46870</link>
      <description>&lt;P&gt;I'm trying to create a chart that has the time of day on the y axis.  I have a results table that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Database      Time_of_Day
db_1          10:00
db_2          10:05
db_3          13:30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I do a "chart max(Time_of_Day) by Database"  I see results in the results table but nothing in any of the chart types.  What am I missing here?  How do I tell splunk to use a time scale for the Y axis?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165024#M46870</guid>
      <dc:creator>jstockamp</dc:creator>
      <dc:date>2020-09-28T15:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Time of Day on Y Axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165025#M46871</link>
      <description>&lt;P&gt;What are the values you get (as table) after your chart command? does it shows Time_Of_Day as epoch time (decimal number)?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165025#M46871</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T15:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time of Day on Y Axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165026#M46872</link>
      <description>&lt;P&gt;What does your raw data look like?  The best way to get time charts in Splunk is to generate some events with extracted timestamps and then use the "timechart" search command.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 04:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165026#M46872</guid>
      <dc:creator>Simon_Fishel</dc:creator>
      <dc:date>2013-12-04T04:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Time of Day on Y Axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165027#M46873</link>
      <description>&lt;P&gt;The problem that I see here is that there is no truly "graphable" data in your output.&lt;/P&gt;

&lt;P&gt;You cannot tell Splunk to use a time-scale on the Y axis. At least not for &lt;CODE&gt;chart&lt;/CODE&gt; or &lt;CODE&gt;timechart&lt;/CODE&gt;: by definition, the Y axis must be the numeric result of one of the &lt;CODE&gt;chart&lt;/CODE&gt; or &lt;CODE&gt;timechart&lt;/CODE&gt; functions, and none of them return time values. &lt;CODE&gt;max(Time_of_Day)&lt;/CODE&gt; will work only if &lt;CODE&gt;Time_of_Day&lt;/CODE&gt; is numeric - otherwise it returns null values.&lt;/P&gt;

&lt;P&gt;You could do something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| timechart span=30m count by Database
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will graph the count of events attributable to each database.&lt;/P&gt;

&lt;P&gt;You might also look at the &lt;CODE&gt;xyseries&lt;/CODE&gt; command, but I am not sure that it will do what you want, either...&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 05:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-of-Day-on-Y-Axis/m-p/165027#M46873</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-12-04T05:02:49Z</dc:date>
    </item>
  </channel>
</rss>

