<?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 Timechart with multiple fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340057#M100852</link>
    <description>&lt;P&gt;Hi , I need to add one more field "row_num" in the same timechart &lt;/P&gt;

&lt;P&gt;Search query is &lt;BR /&gt;
index=abc |  timechart span=1hr   avg(response_time) by  host &lt;/P&gt;

&lt;P&gt;row_num  contains 30 ,40,25,15,.....&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 15:51:35 GMT</pubDate>
    <dc:creator>imthesplunker</dc:creator>
    <dc:date>2017-04-20T15:51:35Z</dc:date>
    <item>
      <title>Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340057#M100852</link>
      <description>&lt;P&gt;Hi , I need to add one more field "row_num" in the same timechart &lt;/P&gt;

&lt;P&gt;Search query is &lt;BR /&gt;
index=abc |  timechart span=1hr   avg(response_time) by  host &lt;/P&gt;

&lt;P&gt;row_num  contains 30 ,40,25,15,.....&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340057#M100852</guid>
      <dc:creator>imthesplunker</dc:creator>
      <dc:date>2017-04-20T15:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340058#M100853</link>
      <description>&lt;P&gt;What information is the row_num field supposed to convey?  &lt;/P&gt;

&lt;P&gt;Are you wanting the average of the row_num for each host in each  hour, or the max, or what?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340058#M100853</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-20T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340059#M100854</link>
      <description>&lt;P&gt;Might need "chart OVER BY" instead of timechart? Or a fancy stats call. More information about what exactly you're looking for would be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340059#M100854</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2017-04-20T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340060#M100855</link>
      <description>&lt;P&gt;You want to include avg(row_num) and it should be calculated for each host? IF yes, the this should work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | timechart span=1hr avg(response_time) avg_response_time avg(row_num) avg_row_num by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Does this give you what you want?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | eval host=host.":".row_num| timechart span=1hr avg(response_time) avg_response_time by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340060#M100855</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-20T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340061#M100856</link>
      <description>&lt;P&gt;If you are going to use the &lt;CODE&gt;visualization&lt;/CODE&gt; tab, you need to make sure that all of your "things" have a single numerical value.  You can gather as many "things" as you like just by adding them in a string like this:&lt;/P&gt;

&lt;P&gt;THIS IS UNCHARTABLE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | timechart span=1h avg(response_time) values(row_num) BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;THIS IS CHARTABLE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | timechart span=1h avg(response_time) max(row_num) BY host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2017 17:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340061#M100856</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-20T17:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340062#M100857</link>
      <description>&lt;P&gt;Thankyou all for the responses .Somesoni2 and woodcock , i am getting the timechart for both response_time and row_num  but not as expected . &lt;BR /&gt;
I am looking for is &lt;/P&gt;

&lt;P&gt;when i hover into the chart , it gives  &lt;/P&gt;

&lt;P&gt;1)date and time &lt;BR /&gt;
2)avg(response_time) with values .&lt;/P&gt;

&lt;P&gt;can max(row_num) also included along with the other two when i hover  ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340062#M100857</guid>
      <dc:creator>imthesplunker</dc:creator>
      <dc:date>2020-09-29T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340063#M100858</link>
      <description>&lt;P&gt;With my answer (the "chartable" one), you will get &lt;EM&gt;TWO&lt;/EM&gt; lines for each host: 1 line for the &lt;CODE&gt;avg(response_time)&lt;/CODE&gt; and another for &lt;CODE&gt;max(row_num)&lt;/CODE&gt;.  There is no way to stuff 2 separate values into a single line (see the "unchartable" commentary in my answer).&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-multiple-fields/m-p/340063#M100858</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-20T18:22:03Z</dc:date>
    </item>
  </channel>
</rss>

