<?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 do I make a line graph with my timechart search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196378#M56651</link>
    <description>&lt;P&gt;So your just want another line with same name as SOMESTRINGTOLOOKFOR and have same values as Completion_Time?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 22:20:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-08-27T22:20:02Z</dc:date>
    <item>
      <title>How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196361#M56634</link>
      <description>&lt;P&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/612iE2A4CBD579490F42/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;This is a table I created using the timechart command. Now, I am trying to make a line graph with this information with date on the x-axis and completion time for the y-axis. If I am able to solve that, I would love to add extra lines to the line graph. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;searchString&amp;gt;host=... source = ... Position="Finished" AND Report  | timechart latest(TIME) as Completion_Time&amp;lt;/searchString&amp;gt;
&amp;lt;earliestTime&amp;gt;-168h&amp;lt;/earliestTime&amp;gt;
&amp;lt;latestTime&amp;gt;$timetoken.latest$&amp;lt;/latestTime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is inside my dashboard atm. I have a drop down for time at the top. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 19:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196361#M56634</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196362#M56635</link>
      <description>&lt;P&gt;The Completion_Time field is string value and as far as I know, strings can't be plotted in Y-axis (you need numerical values). Workaround, you can convert your Completion_Time to decimal number like &lt;CODE&gt;HH.MM&lt;/CODE&gt; and plot them.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196362#M56635</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T07:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196363#M56636</link>
      <description>&lt;P&gt;OH! I see.. What was the command again? str..() lol.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 20:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196363#M56636</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T20:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196364#M56637</link>
      <description>&lt;P&gt;you should be using timechart on _time field&lt;/P&gt;

&lt;P&gt;timechart latest(_time) as "Completion_Time" | convert ctime("Completion_Time") | . . . &lt;/P&gt;

&lt;P&gt;the convert ctime converts _time to a human readable format for you. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196364#M56637</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2020-09-29T07:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196365#M56638</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| eval Completion_Time=tonumber(replace(Completion_Time,"(\d+):(\d+):(\d+)","\1.\2"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196365#M56638</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-27T21:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196366#M56639</link>
      <description>&lt;P&gt;Ill try that out right now. Would you know how to do the line graph?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196366#M56639</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T21:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196367#M56640</link>
      <description>&lt;P&gt;Oh and the _time field wont work well because I extracted TIME from the log file.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196367#M56640</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196368#M56641</link>
      <description>&lt;P&gt;Whats the 1 and 2 for?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196368#M56641</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196369#M56642</link>
      <description>&lt;P&gt;Thank you somesoni2! I got the graph!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196369#M56642</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T21:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196370#M56643</link>
      <description>&lt;P&gt;In replace, I'm clubbing your data in 3 parts (values inside the brackets), and replacing 3 parts named 1,2,3 from current format of &lt;CODE&gt;1:2:3 to 1.2&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196370#M56643</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-27T21:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196371#M56644</link>
      <description>&lt;P&gt;Would you know how to add a second line? &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 21:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196371#M56644</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T21:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196372#M56645</link>
      <description>&lt;P&gt;What you'd be better off using here is the convert command.  Convert has a &lt;CODE&gt;dur2sec&lt;/CODE&gt; function that is specifically designed for turning strings like "02:34:59" into an integer number of seconds. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=... source = ... Position="Finished" AND Report | convert dur2sec(TIME) | timechart max(TIME)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/Convert"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/Convert&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;to format it as a line chart you need to edit the visualization.  Here it looks like you're in a dashboard panel so make sure you're logged in as an admin, or as someone with edit rights to the dashboard,  and click "Edit &amp;gt; Edit Panels".   When the panels reload with little edit icons in their top right, the middle icon is the Visualization one, and in that menu there's a "Line" option. &lt;/P&gt;

&lt;P&gt;Otherwise if/when you're in the generic Search UI you would look under the "visualization" tab.  In both cases setting the visualization to Line chart is pretty straightforward. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196372#M56645</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-08-27T22:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196373#M56646</link>
      <description>&lt;P&gt;Would you know how to add a second line? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=.. source =.. SOMESTRINGTOLOOKFOR   | timechart latest(TIME) as Completion_Time | eval Completion_Time=tonumber(replace(Completion_Time,"(\d+):(\d+):(\d+)","\1.\2"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196373#M56646</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T22:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196374#M56647</link>
      <description>&lt;P&gt;Im not sure if I would want it in seconds. But ill see if  there are other commands&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196374#M56647</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T22:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196375#M56648</link>
      <description>&lt;P&gt;What you want to show in the second line?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196375#M56648</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-27T22:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196376#M56649</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; host=.. source =.. SOMESTRINGTOLOOKFOR   | timechart latest(TIME) as Completion_Time | eval Completion_Time=tonumber(replace(Completion_Time,"(\d+):(\d+):(\d+)","\1.\2"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196376#M56649</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T22:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196377#M56650</link>
      <description>&lt;P&gt;That is what I have right now... So I want to add a second line which also has SOMESTRINGTOLOOKFOR and get the exact same data.. The completion_Time&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196377#M56650</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T22:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196378#M56651</link>
      <description>&lt;P&gt;So your just want another line with same name as SOMESTRINGTOLOOKFOR and have same values as Completion_Time?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196378#M56651</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-27T22:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196379#M56652</link>
      <description>&lt;P&gt;It will be a different string i would be looking for.. but yeah looking for completion time too.. When I was looking online they use a comma in time chart but im not sure how I could make it work&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196379#M56652</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T22:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a line graph with my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196380#M56653</link>
      <description>&lt;P&gt;So I would want the exact same thing but the SOMESTRINGTOLOOKFOR has an unique completion time. So it would be nice to have both.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-line-graph-with-my-timechart-search/m-p/196380#M56653</guid>
      <dc:creator>alanxu</dc:creator>
      <dc:date>2015-08-27T22:30:30Z</dc:date>
    </item>
  </channel>
</rss>

