<?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: How to chart values over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195424#M56338</link>
    <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span=1h count by job_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Aug 2015 23:20:02 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-27T23:20:02Z</dc:date>
    <item>
      <title>How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195413#M56327</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;What I am trying to do is to literally chart the values over time. Now the value can be anything. It can be a string too. My goal here is to just show what values occurred over that time &lt;/P&gt;

&lt;P&gt;Eg Data:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/610iE4ED75CB9C92279A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I need to be able to show in a graph that these job_id's were being executed at that point of time. Is it possible? Do I need to use some advance charting mechanism to show this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:14:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195413#M56327</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2015-08-27T14:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195414#M56328</link>
      <description>&lt;P&gt;Something like this will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bucket _time span=1d | stats values(job_id) by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195414#M56328</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-27T14:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195415#M56329</link>
      <description>&lt;P&gt;Have you tried appending a &lt;CODE&gt;timechart&lt;/CODE&gt; command to your search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart values(job_id)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195415#M56329</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-27T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195416#M56330</link>
      <description>&lt;P&gt;I did. I think the problem is its not a straight number . As you see in the image above, it has a _ in between the two numbers. May be because of that it doesn't know how to chart it&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195416#M56330</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2015-08-27T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195417#M56331</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|replace "*_*" with "**" in job_id 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This make it a number. But thats not really what I want to do. I just want to show the value by _time. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195417#M56331</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2015-08-27T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195418#M56332</link>
      <description>&lt;P&gt;I sort of expected that.  Charting is something best done with numbers.  I'm not sure of the utility of charting unique strings.  @woodcock's answer will show job_id's broken down by time.  Perhaps you can experiment with different visualizations to see if any work for you.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195418#M56332</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-27T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195419#M56333</link>
      <description>&lt;P&gt;If you just want to plot a point to denote that a particular job ID was run, try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving above table | mvexpand job_id | eval value=1 | table _time job_id value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will plot a value of 1 for all job_id (select column chart).&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Updated answer *&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your current search giving above table | mvexpand job_id | eval value=1 | chart values(value) over _time by job_id limit=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195419#M56333</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-27T16:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195420#M56334</link>
      <description>&lt;P&gt;Thanks for the correction.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195420#M56334</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-08-27T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195421#M56335</link>
      <description>&lt;P&gt;Well yes, thats the plan. But I still need to show which job_id was running then. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195421#M56335</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2015-08-27T17:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195422#M56336</link>
      <description>&lt;P&gt;Unfortunately there's no out-of-the-box way to do that (yet). Using a hack gets you pretty close: You could do &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart values(linecount) by job_id span=1m
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Given fine enough resolution for &lt;CODE&gt;span&lt;/CODE&gt;, this sets the value for each &lt;CODE&gt;job_id&lt;/CODE&gt; to 1. You can then do a line chart, like so:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/609i1F3D1B99784DCE32/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195422#M56336</guid>
      <dc:creator>mporath_splunk</dc:creator>
      <dc:date>2015-08-27T17:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195423#M56337</link>
      <description>&lt;P&gt;Give updated answer a try&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 18:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195423#M56337</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-27T18:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart values over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195424#M56338</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span=1h count by job_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 23:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-values-over-time/m-p/195424#M56338</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-27T23:20:02Z</dc:date>
    </item>
  </channel>
</rss>

