<?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: Help with search to use for dashboard - link key-value pairs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611925#M212749</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I have made some corrections to the original post - thanks for bearing with me.&lt;/P&gt;&lt;P&gt;To keep it simple, if we look for now at just mac address 1, so for a single device (ie define the mac address to display for), I would like to track the time as the x-axis. The y-axis would be the value. The dataset would be counter_01.&lt;/P&gt;&lt;P&gt;I hope this clears things up - thanks again for the help.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2022 10:32:45 GMT</pubDate>
    <dc:creator>neilmac64</dc:creator>
    <dc:date>2022-09-05T10:32:45Z</dc:date>
    <item>
      <title>Help with search to use for dashboard - link key-value pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611906#M212738</link>
      <description>&lt;P&gt;Hi Folks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate some help to create a dashboard. I want a simple line chart that shows how a value changes over time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data comes from a csv file and in the csv, is in this format:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;timestamp&lt;/TD&gt;&lt;TD width="25%"&gt;mac_address&lt;/TD&gt;&lt;TD width="25%"&gt;key&lt;/TD&gt;&lt;TD width="25%"&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;20220902-153931&lt;/TD&gt;&lt;TD width="25%"&gt;xx:yy:zz:aa:bb:01&lt;/TD&gt;&lt;TD width="25%"&gt;counter_01&lt;/TD&gt;&lt;TD width="25%"&gt;246897&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;20220902-153931&lt;/TD&gt;&lt;TD width="25%"&gt;xx:yy:zz:aa:bb:01&lt;/TD&gt;&lt;TD width="25%"&gt;counter_02&lt;/TD&gt;&lt;TD width="25%"&gt;1595&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further on in the same file we see the same keys for a different device by mac_address:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;timestamp&lt;/TD&gt;&lt;TD width="25%"&gt;mac_address&lt;/TD&gt;&lt;TD width="25%"&gt;key&lt;/TD&gt;&lt;TD width="25%"&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;20220902-153931&lt;/TD&gt;&lt;TD width="25%"&gt;xx:yy:zz:aa:bb:02&lt;/TD&gt;&lt;TD width="25%"&gt;counter_01&lt;/TD&gt;&lt;TD width="25%"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;20220902-153931&lt;/TD&gt;&lt;TD width="25%"&gt;xx:yy:zz:aa:bb:02&lt;/TD&gt;&lt;TD width="25%"&gt;counter_02&lt;/TD&gt;&lt;TD width="25%"&gt;1350&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the data looks in search for a single device (identified by mac_address) and a single key (counter_01) with a value of 246897.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neilmac64_0-1662370147111.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21308i2F5E43993A6C9412/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neilmac64_0-1662370147111.png" alt="neilmac64_0-1662370147111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These values are pulled via a script which runs according to a schedule, so the index will contain updated data with a new timestamp. In all there are about 20 key/value matches per device per run of the script.&lt;/P&gt;&lt;P&gt;What I would like to achieve:&lt;/P&gt;&lt;P&gt;A simple line chart that shows the values for device 1, showing the counter_01 key and how the value changes over time.&lt;/P&gt;&lt;P&gt;The problem I am having is understanding how to get the chart to identify the device and then show the right stat.&lt;/P&gt;&lt;P&gt;Once I know how to do this I'm sure I can work out how to display the other values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As always, I'm very grateful for any help.&lt;/P&gt;&lt;P&gt;NM&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:32:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611906#M212738</guid>
      <dc:creator>neilmac64</dc:creator>
      <dc:date>2022-09-05T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search to use for dashboard - link key-value pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611909#M212740</link>
      <description>&lt;P&gt;I am slightly confused by your example data and requirement - you have timestamps all the same (yet you want to show changes over time) - you have 3 mac addresses ending in 02 and 1 ending in 01 - the values for counter_01 are different, but the values for counter_02 are the same.&lt;/P&gt;&lt;P&gt;Charts would usually have 3 dimensions, _time / timestamp, value, series. Which of your fields represent these dimensions?&lt;/P&gt;&lt;P&gt;(You can use overlays to split some of the series into different scales, but the series are still the third dimension.)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 09:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611909#M212740</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-05T09:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search to use for dashboard - link key-value pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611925#M212749</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I have made some corrections to the original post - thanks for bearing with me.&lt;/P&gt;&lt;P&gt;To keep it simple, if we look for now at just mac address 1, so for a single device (ie define the mac address to display for), I would like to track the time as the x-axis. The y-axis would be the value. The dataset would be counter_01.&lt;/P&gt;&lt;P&gt;I hope this clears things up - thanks again for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:32:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611925#M212749</guid>
      <dc:creator>neilmac64</dc:creator>
      <dc:date>2022-09-05T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search to use for dashboard - link key-value pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611929#M212753</link>
      <description>&lt;LI-CODE lang="markup"&gt;| where key="counter_01" AND mac_address="xx:yy:zz:aa:bb:01"
| timechart values(value) by key&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611929#M212753</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-05T10:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search to use for dashboard - link key-value pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611933#M212756</link>
      <description>&lt;P&gt;OK, I have this:, but no results found:&lt;/P&gt;&lt;P&gt;| where index=&lt;EM&gt;index&lt;/EM&gt; AND key=&lt;EM&gt;counter_01&lt;/EM&gt; AND mac_address="&lt;EM&gt;xx:yy:zz:aa:bb:01&lt;/EM&gt;"&lt;BR /&gt;| timechart values(value) by key&lt;/P&gt;&lt;P&gt;(I added the index name)&lt;/P&gt;&lt;P&gt;Did I miss something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611933#M212756</guid>
      <dc:creator>neilmac64</dc:creator>
      <dc:date>2022-09-05T10:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search to use for dashboard - link key-value pairs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611938#M212760</link>
      <description>&lt;P&gt;What you have there is looking for a match between the value in field 'key' and the value in field 'counter_01' - to compare the value in field 'key' with the string value "counter_01", you need to have the string value in double quotes (as I showed).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 11:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-use-for-dashboard-link-key-value-pairs/m-p/611938#M212760</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-05T11:21:33Z</dc:date>
    </item>
  </channel>
</rss>

