<?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 store value in variable? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634733#M52024</link>
    <description>&lt;P&gt;It is true that I come from a non-splunk paradigm.&lt;/P&gt;&lt;P&gt;The point is to be able to draw two lines :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One for the evolution of how much "New" items I have created in a given period&lt;/LI&gt;&lt;LI&gt;One for the evolution of how much "Closed" items I have closed in the same time&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Check the exemple below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimanO_0-1678953307427.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24339i3CEC240DCA18ADF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimanO_0-1678953307427.png" alt="KimanO_0-1678953307427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"New" and "Closed" are two fields I can found in the "Status" variable but I want to access to each of them without making a filter.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 07:57:35 GMT</pubDate>
    <dc:creator>KimanO</dc:creator>
    <dc:date>2023-03-16T07:57:35Z</dc:date>
    <item>
      <title>How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634623#M52018</link>
      <description>&lt;P class="lia-align-left"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Let's say that I have a database with a table like this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimanO_0-1678898690643.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24324i6B1AEDC3F1212B13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimanO_0-1678898690643.png" alt="KimanO_0-1678898690643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I would like to know if it is possible to acces and store the "New" and "Closed" status in some variables in order to draw a chart based on how much new items were created and how much were closed in the same time ?&lt;/P&gt;
&lt;P&gt;Thank you for your help,&lt;BR /&gt;Oulebsir Kiman&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634623#M52018</guid>
      <dc:creator>KimanO</dc:creator>
      <dc:date>2023-03-15T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Store value in variable</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634630#M52019</link>
      <description>&lt;P&gt;Once onboarded from the database, "New", "Closed" and "In progress" will be stored in the field ("variable") called 'Status'.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634630#M52019</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-15T18:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634631#M52020</link>
      <description>&lt;P&gt;Whenever someone starts talking about variables it usually means that that person comes from a non-splunk paradigm and tries to do something in splunk in a non-splunky way.&lt;/P&gt;&lt;P&gt;So instead of writing what you're trying to _do_, tell us what you're trying to achieve (what data you have) and what your expected output is.&lt;/P&gt;&lt;P&gt;That's provided you're talking about search. If you're talking about dashboards (and you've posted in the dashboards and visualizations section), there is a possibility to store some values in a token which can be read by another dashboard component.&lt;/P&gt;&lt;P&gt;So please be more specific about what is your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634631#M52020</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-15T18:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634733#M52024</link>
      <description>&lt;P&gt;It is true that I come from a non-splunk paradigm.&lt;/P&gt;&lt;P&gt;The point is to be able to draw two lines :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One for the evolution of how much "New" items I have created in a given period&lt;/LI&gt;&lt;LI&gt;One for the evolution of how much "Closed" items I have closed in the same time&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Check the exemple below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimanO_0-1678953307427.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24339i3CEC240DCA18ADF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimanO_0-1678953307427.png" alt="KimanO_0-1678953307427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"New" and "Closed" are two fields I can found in the "Status" variable but I want to access to each of them without making a filter.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 07:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634733#M52024</guid>
      <dc:creator>KimanO</dc:creator>
      <dc:date>2023-03-16T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634734#M52025</link>
      <description>&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;But how can I reach them without filtering the hole dashboard ?&lt;/P&gt;&lt;P&gt;This is the kinf of charts I want to do :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimanO_0-1678953307427.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24339i3CEC240DCA18ADF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimanO_0-1678953307427.png" alt="KimanO_0-1678953307427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"New" and "Closed" are two fields I can found in the "Status" variable but I want to access to each of them without making a filter.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 07:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634734#M52025</guid>
      <dc:creator>KimanO</dc:creator>
      <dc:date>2023-03-16T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634736#M52026</link>
      <description>&lt;P&gt;This looks like a case of simple statsing or timecharting over some field.&lt;/P&gt;&lt;P&gt;For example (I don't know your data so that's just an idea of a search, not actual copy-paste solution)&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search&amp;gt; | timechart span=1d count by status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 08:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634736#M52026</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-16T08:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634738#M52027</link>
      <description>&lt;P&gt;Thank you for your proposal,&lt;/P&gt;&lt;P&gt;Is it possible to only select 2 fiels out of 3 when I do a&lt;/P&gt;&lt;PRE&gt;count by status&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;I only want to get the new and closed one, not the implemented&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 08:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634738#M52027</guid>
      <dc:creator>KimanO</dc:creator>
      <dc:date>2023-03-16T08:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634777#M52030</link>
      <description>&lt;P&gt;Of course. You can do that in several different ways &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;1. Filter results of your aggregation by adding&lt;/P&gt;&lt;PRE&gt;|&amp;nbsp; search status IN (new,closed)&lt;/PRE&gt;&lt;P&gt;2. (better, but sometimes inapplicable if you want to calculate some parameters based on all events) Filter the initial data which you summarize by&lt;/P&gt;&lt;PRE&gt;&amp;lt;your initial search&amp;gt; status IN (new,closed) | stats count by status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 13:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634777#M52030</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-16T13:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to store value in variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634779#M52031</link>
      <description>&lt;P&gt;Thank you ! It is getting there slowly but it is &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I might have not explained it well and I am sorry about that, I would like to draw 2 lines, one for "New" status and one "Closed" status.&lt;/P&gt;&lt;P&gt;By doing it the way you told me to, I have one line but without "In progress", wich is already good !&lt;BR /&gt;&lt;BR /&gt;The goal here is to compare how fast the "New" line growth with the "Closed" one. That is why I would like to store these 2 values in some variables to be able to display them separatly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimanO_0-1678974762736.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24342iCD4F10056610D2A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimanO_0-1678974762736.png" alt="KimanO_0-1678974762736.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help !! Really appreciate&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 13:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-store-value-in-variable/m-p/634779#M52031</guid>
      <dc:creator>KimanO</dc:creator>
      <dc:date>2023-03-16T13:55:43Z</dc:date>
    </item>
  </channel>
</rss>

