<?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: Timechart grouping in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364878#M107620</link>
    <description>&lt;P&gt;Could you provide more details on what your current output is and what's expected?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 18:53:32 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-12-22T18:53:32Z</dc:date>
    <item>
      <title>Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364877#M107619</link>
      <description>&lt;P&gt;I am trying to analyze patterns of heap usage by Java Virtual Machine (JVM) level and 5 jvms grouped as a host. Now I want to timechart the heap by JVM and output it by host. I output all of the data by JVM, I am getting an unreadable graph. &lt;/P&gt;

&lt;P&gt;Here is my search: &lt;BR /&gt;
search |timechart span=10min avg(heap) by JVM.&lt;BR /&gt;
With this search i am getting all the JVMS in graph(which is not readable), but I want a separate graph for each host with 4 jvms trending data. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 16:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364877#M107619</guid>
      <dc:creator>kmahamkali</dc:creator>
      <dc:date>2017-12-22T16:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364878#M107620</link>
      <description>&lt;P&gt;Could you provide more details on what your current output is and what's expected?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 18:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364878#M107620</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-22T18:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364879#M107621</link>
      <description>&lt;P&gt;If my understating is correct below is the one you are looking for,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search |  timechart span=10min avg(heap) by host JVM 
    OR
 base search
| eval hostjvm=host."-".JVM
| timechart span=10min avg(heap) by hostjvm
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if above queries not serving your need and what is missing&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 19:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364879#M107621</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2017-12-22T19:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364880#M107622</link>
      <description>&lt;P&gt;It didn't help.&lt;BR /&gt;
I want to group the chart by host and with JVM trending data.&lt;BR /&gt;
 for example i have 10 hosts and each has 4 Jvms. I am looking for a graph 4 jvms grouping by host  so that i can see 10 charts with trending data. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 20:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364880#M107622</guid>
      <dc:creator>kmahamkali</dc:creator>
      <dc:date>2017-12-22T20:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364881#M107623</link>
      <description>&lt;P&gt;So you are looking for a graph  which contains 10 hosts for the average heap values of on 4 different JVMS. But you no need to list the JVMS in the chart. if that is the case mention your JVM names in the base search(Incase multiple JVMS are there, You just need only 4)&lt;/P&gt;

&lt;P&gt;Something like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=x sourcetype=y (jvm=1 OR jvm=2 OR jvm=3 OR jvm=4)  
| timechart span=10min avg(heap) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above query will produce you 10 graphs based on the host and graph values will be the average heap of 4 jvms.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 22:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364881#M107623</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2017-12-22T22:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364882#M107624</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Can you check if below query works for you?&lt;BR /&gt;
base search| chart avg(heap) AS heap, values(JVM) AS JVM by host | dedup host&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2017 08:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364882#M107624</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2017-12-23T08:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364883#M107625</link>
      <description>&lt;P&gt;hey @kmahamkali &lt;/P&gt;

&lt;P&gt;Try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base_search JVM IN (jvm1,jvm2,jvm4,jvm5) | timechart span=10m avg(heap) as avg_heap by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In search query, &lt;CODE&gt;JVM&lt;/CODE&gt; is the field_name and &lt;CODE&gt;jvm1,jvm2,jvm4,jvm5&lt;/CODE&gt; are the values associated with that field name&lt;BR /&gt;
Thereafter, go to visualization select column chart and use trellis layout split by host&lt;BR /&gt;
you will get 10 charts in one query!&lt;/P&gt;

&lt;P&gt;Let me know if this helps you!&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2017 05:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364883#M107625</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-24T05:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364884#M107626</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/85195"&gt;@kmahamkali&lt;/a&gt; If you are on &lt;CODE&gt;Splunk Enterprise 6.6. or higher&lt;/CODE&gt; you can use &lt;CODE&gt;Trellis Layout&lt;/CODE&gt; to split the timechart by hosts and show the four JVMs in each of the host timecharts.&lt;/P&gt;

&lt;P&gt;However, if you are using &lt;CODE&gt;any previous versions of Splunk Enterprise&lt;/CODE&gt; you will have following two options:&lt;BR /&gt;
&lt;CODE&gt;Option 1&lt;/CODE&gt;) Aggregate field as  JVM + host and then use the same new field to split your timechart.&lt;BR /&gt;
&lt;CODE&gt;Option 2&lt;/CODE&gt;) Create Post-processing to plot one Timechart at a time for one host. This will create view same as Trellis. Please let me know if this is possible option and you are not able to figure this out, as I have listed only option 1 below.&lt;/P&gt;

&lt;P&gt;Following is run anywhere dashboard based on Splunk's _internal index where you can think component as your host field and log_level as your JVM field. Kindly adjust your search accordingly once you try out the run anywhere dashboard and it matches your expectations:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/226589-group-timechart-using-trellis.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Two Groups in Timechart&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Without Trellis&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal (sourcetype=splunkd log_level="ERROR" OR log_level="WARN") (component="AutoRegressionProcessor" OR component="EvalCommand" OR component="ExecProcessor" OR component="SearchParser" OR component="UiAuth")
| timechart count(eval(log_level="ERROR")) as ERROR count(eval(log_level="WARN")) as WARN by component limit=0 useother=f usenull=f&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.mode"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.lineWidth"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.splitBy"&amp;gt;component&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;With Trellis&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level IN ("ERROR", "WARN") component IN ("AutoRegressionProcessor","EvalCommand","ExecProcessor","SearchParser","UiAuth")
| timechart count(eval(log_level="ERROR")) as ERROR count(eval(log_level="WARN")) as WARN by component&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.mode"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;bottom&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.lineWidth"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="height"&amp;gt;460&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.splitBy"&amp;gt;component&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364884#M107626</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T17:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364885#M107627</link>
      <description>&lt;P&gt;@kmahamkali, were you able to try out the above solution?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 04:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364885#M107627</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-29T04:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364886#M107628</link>
      <description>&lt;P&gt;yes But no luck sir. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364886#M107628</guid>
      <dc:creator>kmahamkali</dc:creator>
      <dc:date>2018-06-05T22:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364887#M107629</link>
      <description>&lt;P&gt;I end up in creating dashboard with 7 panels with the same query ( difference in host name).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364887#M107629</guid>
      <dc:creator>kmahamkali</dc:creator>
      <dc:date>2018-06-05T22:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart grouping</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364888#M107630</link>
      <description>&lt;P&gt;@kmahamkali, so you are not on Splunk 6.6. or higher. Did you try post processing as suggested?&lt;/P&gt;

&lt;P&gt;If you are on version prior to 6.6 you would need to have separate panels with different searches. However, you can use one of the options mentioned above. For example Post Processing will pull the data from index once and then filter results as needed by different panels.&lt;/P&gt;

&lt;P&gt;If you tried one of the two options for version prior to 6.6., and it did not work, please share the query with us and we can assist. If you have used one of the two options, do not forget to accept the answer and up vote the comments that helped.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-grouping/m-p/364888#M107630</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-06T17:31:31Z</dc:date>
    </item>
  </channel>
</rss>

