<?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 Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/519995#M34928</link>
    <description>&lt;P&gt;Create an input panel with a dropdown giving you options for type (include All as option). Use the dropdown to set up a token that you put into your search for your location graph.&lt;/P&gt;&lt;P&gt;Do a similar thing for the locations for your type graph&lt;/P&gt;&lt;P&gt;You could combine the tokens so the graph is filtered on both type and location.&lt;/P&gt;&lt;P&gt;You can have another dropdown to select which dimension you want in your graph&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 17:48:23 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-09-16T17:48:23Z</dc:date>
    <item>
      <title>How To Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/519974#M34922</link>
      <description>&lt;P&gt;I have the following data samples:&lt;/P&gt;&lt;P&gt;Temperature=82.4, Location=xxx.165.152.17, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=84.2, Location=xxx.165.152.48, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=82.4, Location=xxx.165.154.21, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=82.4, Location=xxx.165.162.22, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=77.0, Location=xxx.165.164.17, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=75.2, Location=xxx.165.170.17, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=77.0, Location=xxx.165.208.12, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=73.4, Location=xxx.165.224.20, Time=Wed Sep 16 07:43:01 PDT 2020, Type=UPS&lt;BR /&gt;Temperature=75.3, Location=xxx.165.52.13, Time=Wed Sep 16 07:47:01 PDT 2020, Type=TempSensor&lt;BR /&gt;Temperature=77.9, Location=xxx.165.52.14, Time=Wed Sep 16 07:47:01 PDT 2020, Type=TempSensor&lt;BR /&gt;Temperature=76.3, Location=xxx.165.54.24, Time=Wed Sep 16 07:47:01 PDT 2020, Type=TempSensor&lt;BR /&gt;Temperature=83.8, Location=xxx.165.48.20, Time=Wed Sep 16 07:47:01 PDT 2020, Type=TempSensor&lt;BR /&gt;Temperature=73.8, Location=xxx.165.36.21, Time=Wed Sep 16 07:47:01 PDT 2020, Type=TempSensor&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'd like to draw line graphs of the `Temperature` over `Time`, splitted by `Location` (for individual sensor),&lt;BR /&gt;and I'd like to have a way to label the curves of `Locations`, by the value of `Type` (UPS or TempSensor), label, or legend, etc.&lt;BR /&gt;I'd also like to be able to filter selectively showing by `Type's` value and/or by certain `Location`.&lt;/P&gt;&lt;P&gt;So far, I figured out that I may be able to do the following:&lt;/P&gt;&lt;P&gt;| xyseries Time, Location, Temperature&lt;/P&gt;&lt;P&gt;but I am yet to figure out how to provide the labeling by `Type`, and filtering by `Type`, and `Location`.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 16:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/519974#M34922</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2020-09-16T16:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How To Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/519995#M34928</link>
      <description>&lt;P&gt;Create an input panel with a dropdown giving you options for type (include All as option). Use the dropdown to set up a token that you put into your search for your location graph.&lt;/P&gt;&lt;P&gt;Do a similar thing for the locations for your type graph&lt;/P&gt;&lt;P&gt;You could combine the tokens so the graph is filtered on both type and location.&lt;/P&gt;&lt;P&gt;You can have another dropdown to select which dimension you want in your graph&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 17:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/519995#M34928</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-16T17:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How To Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520014#M34933</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222699"&gt;@yshen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not sure if this is what you are looking for tho.&lt;/P&gt;&lt;P&gt;Assuming that your timestamps are the same as your Time field.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...base search...
| eval varLoc=Location."-".Type
| chart values(Temperature) as Temperature over varLoc by _time&lt;/LI-CODE&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 20:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520014#M34933</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2020-09-16T20:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How To Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520036#M34935</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/115718"&gt;@alemarzu&lt;/a&gt;&amp;nbsp;Thanks for the suggestion. I'll try. This solution might not support the functionality of selecting by Type, for example, I want the user to be able to view locations of Type value "UPS".&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 01:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520036#M34935</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2020-09-17T01:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How To Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520037#M34936</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Your suggestion sounds interesting.&lt;/P&gt;&lt;P&gt;How do I create such input panel with dropdowns with Splunk?&lt;/P&gt;&lt;P&gt;How do I create charts with the selected dropdown values?&lt;/P&gt;&lt;P&gt;So far, I only learned some query language. Some pointer or example, would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 01:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520037#M34936</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2020-09-17T01:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How To Draw Line Charts Of Sensors Data (splitter by a field, labeled by another, and filtered by the both fields)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520055#M34940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222699"&gt;@yshen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Viz/FormEditor" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;for creating and editing forms.&lt;/P&gt;&lt;P&gt;An example of what I have done is this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 996px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10868i9C3E6A6D76105167/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Where I can select what I want the chart to show (this might be just temperature in your case so perhaps not so relevant), but I can select the field I want to filter on (location or type in your case). Then depending on the filter, the choice in the third input is a multi-select populated with dedup'd values of the filter&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;input type="dropdown" token="dimension"&amp;gt;
        &amp;lt;label&amp;gt;Select Dimension&amp;lt;/label&amp;gt;
        &amp;lt;choice value="Consumer"&amp;gt;Consumer&amp;lt;/choice&amp;gt;
---
        &amp;lt;default&amp;gt;Consumer&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="dropdown" token="filter"&amp;gt;
        &amp;lt;label&amp;gt;Select Filter&amp;lt;/label&amp;gt;
        &amp;lt;choice value="Service"&amp;gt;Service&amp;lt;/choice&amp;gt;
---
        &amp;lt;default&amp;gt;Service&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="multiselect" token="selector"&amp;gt;
        &amp;lt;label&amp;gt;Select one or more $filter$&amp;lt;/label&amp;gt;
        &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;search data | dedup $filter$ | fields $filter$&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;$filter$&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;$filter$&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
        &amp;lt;valuePrefix&amp;gt;$filter$ ="&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
        &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
        &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
        &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;eval token="form.selector"&amp;gt;case(mvcount('form.selector')=0,"All",mvcount('form.selector')&amp;amp;gt;1 AND mvfind('form.selector',"All")&amp;amp;gt;0,"All",mvcount('form.selector')&amp;amp;gt;1 AND mvfind('form.selector',"All")=0,mvfilter('form.selector'!="All"),1==1,'form.selector')&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="selector_choice"&amp;gt;if(mvfind('form.selector',"All")=0,$filter$+"=*",$selector$)&amp;lt;/eval&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;title&amp;gt;Graph by $dimension$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;search data $selector_choice$ | stats count by _time, $dimension$&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
---
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 06:03:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-To-Draw-Line-Charts-Of-Sensors-Data-splitter-by-a-field/m-p/520055#M34940</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T06:03:46Z</dc:date>
    </item>
  </channel>
</rss>

