<?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 bundle two timecharts that are split by the same field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362769#M23640</link>
    <description>&lt;P&gt;@niketnilay&lt;/P&gt;

&lt;P&gt;Thanks a lot for the reply, just updated my question with more context on exactly what I want,,,&lt;/P&gt;

&lt;P&gt;Unfortunately i do not want to use overlay with separate scales,,,  just would like to know if there is a way to bundle/pair two time charts split by the same field,&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2017 18:17:27 GMT</pubDate>
    <dc:creator>ee07b291</dc:creator>
    <dc:date>2017-10-02T18:17:27Z</dc:date>
    <item>
      <title>How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362763#M23634</link>
      <description>&lt;P&gt;For example, I'm creating a dashboard with two timecharts like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="watchlist_result" 
|  timechart span=1h limit=0 first(nDevices) by name 
|  fillnull value=0

eventtype="watchlist_result" 
|  timechart span=1h limit=0 first(nActivities) by name 
|  fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in the dashboard I configure using 'Trellis' so I get chart for each 'name'...  One thing that is cumbersome is that I end up with two panels, and if user wants to look at the &lt;CODE&gt;device&lt;/CODE&gt; and &lt;CODE&gt;activity&lt;/CODE&gt; count for the same &lt;CODE&gt;name&lt;/CODE&gt;, they have to scroll on both panels...&lt;/P&gt;

&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/3568iAA6DA21EE7EB8A8D/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;However, I would like to bundle the two timecharts (since they are split by the same field 'name') into one panel, so that charts with same &lt;CODE&gt;name&lt;/CODE&gt; are presented together and user just needs to scroll once,&lt;/P&gt;

&lt;P&gt;[Edit]&lt;/P&gt;

&lt;P&gt;To clarify further, the &lt;CODE&gt;nDevices&lt;/CODE&gt;, &lt;CODE&gt;nActivities&lt;/CODE&gt; and &lt;CODE&gt;name&lt;/CODE&gt; are fields extracted from the event,&lt;/P&gt;

&lt;P&gt;Since the charts are all split by the same field &lt;CODE&gt;name&lt;/CODE&gt;, i would like to have a way to have the device/activity chart from the same &lt;CODE&gt;name&lt;/CODE&gt; shown together like a pair in trellis,,,  something look like below:&lt;/P&gt;

&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/3569i7BFE16C5B89D0AED/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>Fri, 29 Sep 2017 22:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362763#M23634</guid>
      <dc:creator>ee07b291</dc:creator>
      <dc:date>2017-09-29T22:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362764#M23635</link>
      <description>&lt;P&gt;@ee07b291 - The two queries you posted are identical.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 16:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362764#M23635</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-01T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362765#M23636</link>
      <description>&lt;P&gt;@DalJeanis updated,&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 17:09:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362765#M23636</guid>
      <dc:creator>ee07b291</dc:creator>
      <dc:date>2017-10-01T17:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362766#M23637</link>
      <description>&lt;P&gt;Start with this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; eventtype="watchlist_result" 
| eval fan = mvrange(0,2)
| mvexpand fan
| eval value=if(fan=0,nDevices,nActivities)
| eval type=if(fan=0,name." Devices", name." Activities")
|  timechart span=1h limit=0 first(value) by type
|  fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not sure exactly what the meaning of &lt;CODE&gt;nDevices&lt;/CODE&gt; or &lt;CODE&gt;nActivities&lt;/CODE&gt; is, or why you have &lt;CODE&gt;by name&lt;/CODE&gt; but have only one set of results, but this should produce a results that combines your prior two results into a single &lt;CODE&gt;timechart&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 04:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362766#M23637</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-02T04:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362767#M23638</link>
      <description>&lt;P&gt;Merge the timechart for to different series in one and then Use Trellis Formatting Options in UI to &lt;STRONG&gt;Split By&lt;/STRONG&gt; &lt;CODE&gt;name&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; eventtype="watchlist_result" 
 |  timechart span=1h limit=0 first(nDevices) as nDevices first(nActivities) as nActivities by name 
 |  fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the Simple XML option for Splitting Trellis by &lt;CODE&gt;name&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;option name="trellis.splitBy"&amp;gt;name&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since your scale for nDevice (in example max is 1) and scale for nActivities differ by a lot ideally you should create a &lt;CODE&gt;Chart Overlay&lt;/CODE&gt; also. Following will create an overlay for nDevices with a inherited scale to interpret device increments/decrements easily according to activities.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;option name="charting.axisTitleY.text"&amp;gt;nActivities&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.text"&amp;gt;nDevices&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.chart.overlayFields"&amp;gt;nDevices&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.nullValueMode"&amp;gt;zero&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Chart Overlay is optional but I feel you would be able to get better interpretation with the same.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 07:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362767#M23638</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-02T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362768#M23639</link>
      <description>&lt;P&gt;@DalJeanis  Thx for showing me this syntax!~&lt;/P&gt;

&lt;P&gt;Sorry for not being fully clear, just updated my question with more context,,,&lt;/P&gt;

&lt;P&gt;Unfortunately this is not really what I want,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 18:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362768#M23639</guid>
      <dc:creator>ee07b291</dc:creator>
      <dc:date>2017-10-02T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362769#M23640</link>
      <description>&lt;P&gt;@niketnilay&lt;/P&gt;

&lt;P&gt;Thanks a lot for the reply, just updated my question with more context on exactly what I want,,,&lt;/P&gt;

&lt;P&gt;Unfortunately i do not want to use overlay with separate scales,,,  just would like to know if there is a way to bundle/pair two time charts split by the same field,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 18:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362769#M23640</guid>
      <dc:creator>ee07b291</dc:creator>
      <dc:date>2017-10-02T18:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362770#M23641</link>
      <description>&lt;P&gt;If you do not want to overlay you can just choose to create Combined timechart and split Trellis by name. You need not perform the subsequent steps for chart overlay... they were just a suggestion.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 01:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362770#M23641</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-03T01:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362771#M23642</link>
      <description>&lt;P&gt;Any luck with this? I'm in a similar situation right now&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2018 00:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362771#M23642</guid>
      <dc:creator>Tom1187</dc:creator>
      <dc:date>2018-01-28T00:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362772#M23643</link>
      <description>&lt;P&gt;hi @niketnilay, i've been trying to implement your solution here for the same issue. i would like to use the overlay without trellis, but the fields become a concatenation with the by value so the overlayField doesn't work. i'm able to make it work in the GUI by manually choosing each concatenated value for a particular search, but it doesn't generalize for the dashboard.&lt;/P&gt;

&lt;P&gt;thanks for any suggestions. is it possible to have a wildcard in the field name or something similar, for example?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 16:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362772#M23643</guid>
      <dc:creator>cblanton</dc:creator>
      <dc:date>2019-09-24T16:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362773#M23644</link>
      <description>&lt;P&gt;@cblanton if you have more than one aggregation along with a split by field in timechart then you will have multiple series names created in regular visualizations which is expected behavior. And this is was Trellis solves. However, if you do not want Trellis could you please elaborate on what works for you in Search but not in dashboard? Also if possible add your search query some dummy sample data and screenshot of the results (both expected and actual). Please mock/anonymize any sensitive information before posting.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362773#M23644</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-09-26T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to bundle two timecharts that are split by the same field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362774#M23645</link>
      <description>&lt;P&gt;thanks, @niketnilay, I went ahead and posted this as a new question. &lt;A href="https://answers.splunk.com/answers/773306/timechart-of-two-stats-with-split-by-same-field-on.html"&gt;https://answers.splunk.com/answers/773306/timechart-of-two-stats-with-split-by-same-field-on.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 18:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-bundle-two-timecharts-that-are-split-by-the-same-field/m-p/362774#M23645</guid>
      <dc:creator>cblanton</dc:creator>
      <dc:date>2019-09-30T18:17:29Z</dc:date>
    </item>
  </channel>
</rss>

