<?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 add static data in graph with dynamic result in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539285#M36903</link>
    <description>&lt;P&gt;Create a look up with Header&amp;nbsp; "Applications" and&amp;nbsp; add all your applications under that&lt;/P&gt;&lt;P&gt;Refer that in the search&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search
| eval Percent_Available = round((periode-duration_indispo)*100/periode,3)
|rename Function AS "Applications"
|inputlookup append=true applications.csv
|fillnull Percent_Available value=100
|stats min(Percent_Available) as Percent_Available  by Applications&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 11:25:28 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2021-02-10T11:25:28Z</dc:date>
    <item>
      <title>How to add static data in graph with dynamic result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539007#M36864</link>
      <description>&lt;P&gt;Hello dear community,&lt;/P&gt;&lt;P&gt;I absolutely need your help.&lt;BR /&gt;I have the following research which allows me to perform an availability calculation.&lt;/P&gt;&lt;P&gt;index=index (severity=2 OR severity=0 OR severity="-1")&lt;BR /&gt;| eval ID=Env+"_"+Apps+"_"+Function+"_"+varname&lt;BR /&gt;| addinfo&lt;BR /&gt;| eval periode=info_max_time-info_min_time&lt;BR /&gt;| transaction ID startswith=(severity=2) maxevents=2&lt;BR /&gt;| eval start_time=mvindex(timestamp,0), end_time=mvindex(timestamp,1)&lt;BR /&gt;| stats sum(duration) AS duration_indispo by Function, periode&lt;BR /&gt;| eval Percent_Available = round((periode-duration_indispo)*100/periode,3)&lt;BR /&gt;|rename Function AS "Applications"&lt;BR /&gt;| fillnull value=100.00&lt;BR /&gt;|table Applications, Percent_Available&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my research calculates the unavailability of each function (applications) the problem is that I have a button to select the period (previous year, previous month, previous week ... etc) I have exactly 5 functions for which I want to calculate availability but depending on the period chosen it is possible that one or more applications do not return any result and if I display the result on a graph then the applications without result are not taken into account in my graph. how I can do to statically enter the name of my 5 functions and display the results dynamically if the result is not null or display 100% if the result is null.&lt;BR /&gt;fillnull value = 100.00 does not work in this case&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="wcastillocruz_0-1612797690460.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12847iF7F0042C64C07D3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wcastillocruz_0-1612797690460.png" alt="wcastillocruz_0-1612797690460.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 10:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539007#M36864</guid>
      <dc:creator>wcastillocruz</dc:creator>
      <dc:date>2021-02-10T10:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add static data in graph with dynamic result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539234#M36888</link>
      <description>&lt;P&gt;You may use a lookup to define the desired functions and append to the existing result.&lt;/P&gt;&lt;P&gt;However, if the number of functions is less (5), then try this and replace the Application 1.. Application 5 with your application list.&lt;/P&gt;&lt;P&gt;ie. eval Applications=" Add your application list "&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_sqlprod-itrs_toc (severity=2 OR severity=0 OR severity="-1")
| eval ID=Env+"_"+Apps+"_"+Function+"_"+varname
| addinfo
| eval periode=info_max_time-info_min_time
| transaction ID startswith=(severity=2) maxevents=2
| eval start_time=mvindex(timestamp,0), end_time=mvindex(timestamp,1)
| stats sum(duration) AS duration_indispo by Function, periode
| eval Percent_Available = round((periode-duration_indispo)*100/periode,3)
|rename Function AS "Applications"
|append [|stats count|eval Percent_Available=100|eval Applications="Application 1,Application 2,Application 3,Application 4,Application 5"|makemv Applications delim=","|mvexpand Applications]
|stats min(Percent_Available) as Percent_Available by Applications
|table Applications, Percent_Available&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 04:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539234#M36888</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2021-02-10T04:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add static data in graph with dynamic result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539266#M36898</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&lt;BR /&gt;I added the following lines and it works:&lt;BR /&gt;&lt;BR /&gt;|append [| makeresults 1 | eval liste="ICS SPEAKER BUS" |table liste ]&lt;BR /&gt;|append [| makeresults 1 | eval liste="ENREGISTREMENT TELEPHONIE" |table liste ]&lt;BR /&gt;|append [| makeresults 1 | eval liste="OTMS ALCATEL" |table liste]&lt;BR /&gt;|append [| makeresults 1 | eval liste="OXE WORLDWIDE" |table liste]&lt;BR /&gt;&lt;BR /&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 08:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539266#M36898</guid>
      <dc:creator>wcastillocruz</dc:creator>
      <dc:date>2021-02-10T08:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add static data in graph with dynamic result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539268#M36899</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781" target="_blank" rel="noopener"&gt;&lt;FONT&gt;@renjith_nair&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What lookup could I have used if I had a high number of applications? so as not to have to create them manually. could you give me an example pleas?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 08:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539268#M36899</guid>
      <dc:creator>wcastillocruz</dc:creator>
      <dc:date>2021-02-10T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add static data in graph with dynamic result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539285#M36903</link>
      <description>&lt;P&gt;Create a look up with Header&amp;nbsp; "Applications" and&amp;nbsp; add all your applications under that&lt;/P&gt;&lt;P&gt;Refer that in the search&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search
| eval Percent_Available = round((periode-duration_indispo)*100/periode,3)
|rename Function AS "Applications"
|inputlookup append=true applications.csv
|fillnull Percent_Available value=100
|stats min(Percent_Available) as Percent_Available  by Applications&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 11:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-static-data-in-graph-with-dynamic-result/m-p/539285#M36903</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2021-02-10T11:25:28Z</dc:date>
    </item>
  </channel>
</rss>

