<?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 Create a Legend based upon another table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449704#M42638</link>
    <description>&lt;P&gt;Hello gurus.  I have a panel with a STATS COUNT chart where the y-axis is numeric value.  What we would like is a legend where the description of the y-axis number is given.  I know that LOOKUP is involved but I am not sure how to send it to the legend.   It cannot be a static table because there are thousands of message Descriptions and we only want to see the descriptions for detail in the chart.  Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 17:28:28 GMT</pubDate>
    <dc:creator>pwoodring</dc:creator>
    <dc:date>2019-02-08T17:28:28Z</dc:date>
    <item>
      <title>Create a Legend based upon another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449704#M42638</link>
      <description>&lt;P&gt;Hello gurus.  I have a panel with a STATS COUNT chart where the y-axis is numeric value.  What we would like is a legend where the description of the y-axis number is given.  I know that LOOKUP is involved but I am not sure how to send it to the legend.   It cannot be a static table because there are thousands of message Descriptions and we only want to see the descriptions for detail in the chart.  Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 17:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449704#M42638</guid>
      <dc:creator>pwoodring</dc:creator>
      <dc:date>2019-02-08T17:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Legend based upon another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449705#M42639</link>
      <description>&lt;P&gt;This is quite easy to do but you will need to provide some code showing what you are already  doing so we can help you better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 19:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449705#M42639</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-08T19:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Legend based upon another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449706#M42640</link>
      <description>&lt;P&gt;I assume you are doing something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count BY code
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So you need to add this to it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup YourLookupDefinitionHere code OUTPUT description AS code
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 19:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449706#M42640</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-08T19:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Legend based upon another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449707#M42641</link>
      <description>&lt;P&gt;I would like one of the following outcomes:&lt;BR /&gt;&lt;BR /&gt;
1.  Hover over the Bar and see the description but have the y-axis still show the message ID&lt;BR /&gt;
2.  Have a legend at the bottom of the chart translating the message ID to the description.&lt;/P&gt;

&lt;P&gt;I have the search below with some changes for privacy reasons.  Thanks for helping.&lt;/P&gt;

&lt;P&gt;host=SERVERNAME source="audit.log"| rex "\"(?.+?)\",\"(?.+?)\",\"(?.+?)\",\"(?.+?)\",\"(?.+?)\",\"(?.+?)\"" | eval is_match=case("$accountoption$" == "X" AND !LIKE(AccountName, "%X%"),1, "$accountoption$" == "Y" AND LIKE(AccountName, "%Y%"),1, "$accountoption$" == "Z" AND !LIKE(AccountName, "%Z%"),1,1==1,0) | where is_match = 1 | stats count by MessageID | lookup statusmessage.csv MessageNum AS MessageID OUTPUT MessageDesc AS MessageID&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449707#M42641</guid>
      <dc:creator>pwoodring</dc:creator>
      <dc:date>2020-09-29T23:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Legend based upon another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449708#M42642</link>
      <description>&lt;P&gt;Since the Legend functionality is limited i just cheated and added a table directly below to chart.&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/6499i0F070AA37D6B6FF4/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>Wed, 13 Feb 2019 15:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449708#M42642</guid>
      <dc:creator>pwoodring</dc:creator>
      <dc:date>2019-02-13T15:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Legend based upon another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449709#M42643</link>
      <description>&lt;P&gt;Go ahead and click &lt;CODE&gt;Accept&lt;/CODE&gt; on your answer to close the question.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-Legend-based-upon-another-table/m-p/449709#M42643</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-13T17:42:04Z</dc:date>
    </item>
  </channel>
</rss>

