<?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 No 100% results in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681348#M113849</link>
    <description>&lt;P&gt;I have a report with a table where I am showing uptime availability of various products.&amp;nbsp; Currently the table is returning only results that fall below 100%.&amp;nbsp; Makes sense overall but I need all the data.&amp;nbsp; So I need results with no data to show as 100%.&amp;nbsp; For the life of me I can not figure it out.&amp;nbsp; Please all knowing Splunk gods help me.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bullbasin_0-1710930374264.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29817i5111C34784888C7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bullbasin_0-1710930374264.png" alt="bullbasin_0-1710930374264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=my_data data.environment.application="MY APP" data.environment.environment="test"
| eval estack="my_stack"
| fillnull value="prod" estack data.environment.stack
| where 'data.environment.stack'=estack
| streamstats window=1 current=False global=False values(data.result) AS nextResult BY data.componentId
| eval failureStart=if((nextResult="FAILURE" AND 'data.result'="SUCCESS"), "True", "False"), failureEnd=if((nextResult="SUCCESS" AND 'data.result'="FAILURE"), "True", "False")
| transaction data.componentId, data.environment.application, data.environment.stack startswith="failureStart=True" endswith="failureEnd=True" maxpause=15m
| stats sum(duration) as downtime by data.componentId
| addinfo
| eval uptime=(info_max_time - info_min_time)-downtime, avail=(uptime/(info_max_time - info_min_time))*100, downMins=round(downtime/60, 0)
| rename data.componentId AS Component, avail AS Availability
| table Component, Availability&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Mar 2024 12:07:19 GMT</pubDate>
    <dc:creator>bullbasin</dc:creator>
    <dc:date>2024-03-20T12:07:19Z</dc:date>
    <item>
      <title>No 100% results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681348#M113849</link>
      <description>&lt;P&gt;I have a report with a table where I am showing uptime availability of various products.&amp;nbsp; Currently the table is returning only results that fall below 100%.&amp;nbsp; Makes sense overall but I need all the data.&amp;nbsp; So I need results with no data to show as 100%.&amp;nbsp; For the life of me I can not figure it out.&amp;nbsp; Please all knowing Splunk gods help me.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bullbasin_0-1710930374264.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29817i5111C34784888C7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bullbasin_0-1710930374264.png" alt="bullbasin_0-1710930374264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=my_data data.environment.application="MY APP" data.environment.environment="test"
| eval estack="my_stack"
| fillnull value="prod" estack data.environment.stack
| where 'data.environment.stack'=estack
| streamstats window=1 current=False global=False values(data.result) AS nextResult BY data.componentId
| eval failureStart=if((nextResult="FAILURE" AND 'data.result'="SUCCESS"), "True", "False"), failureEnd=if((nextResult="SUCCESS" AND 'data.result'="FAILURE"), "True", "False")
| transaction data.componentId, data.environment.application, data.environment.stack startswith="failureStart=True" endswith="failureEnd=True" maxpause=15m
| stats sum(duration) as downtime by data.componentId
| addinfo
| eval uptime=(info_max_time - info_min_time)-downtime, avail=(uptime/(info_max_time - info_min_time))*100, downMins=round(downtime/60, 0)
| rename data.componentId AS Component, avail AS Availability
| table Component, Availability&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Mar 2024 12:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681348#M113849</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-03-20T12:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: No 100% results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681355#M113851</link>
      <description>&lt;P&gt;As I understand, you're searching for events meaning that you have an outage/failure. Your 100% uptime would mean that you have no events at all, right?&lt;/P&gt;&lt;P&gt;Well, you can't find something that isn't there so you have to "cheat" a little.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://www.duanewaddle.com/proving-a-negative/" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 10:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681355#M113851</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-20T10:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: No 100% results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681372#M113852</link>
      <description>&lt;PRE&gt;Alright maybe not enough coffee....I am going in circles trying to get this to display the values in the csv.&amp;nbsp; Cant figure out what needs to go with the fillnull value.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bullbasin_0-1710937265299.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29818iFEB0D18F1FEB8CD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bullbasin_0-1710937265299.png" alt="bullbasin_0-1710937265299.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;LI-CODE lang="markup"&gt;index=my_data data.environment.application="MY APP" data.environment.environment="test"
| eval estack="my_stack"
| fillnull value="prod" estack data.environment.stack
| where 'data.environment.stack'=estack
| streamstats window=1 current=False global=False values(data.result) AS nextResult BY data.componentId
| eval failureStart=if((nextResult="FAILURE" AND 'data.result'="SUCCESS"), "True", "False"), failureEnd=if((nextResult="SUCCESS" AND 'data.result'="FAILURE"), "True", "False")
| transaction data.componentId, data.environment.application, data.environment.stack startswith="failureStart=True" endswith="failureEnd=True" maxpause=15m
| stats sum(duration) as downtime by data.componentId
| inputlookup append=true Component_avail.csv
| fillnull
| addinfo
| eval uptime=(info_max_time - info_min_time)-downtime, avail=(uptime/(info_max_time - info_min_time))*100, downMins=round(downtime/60, 0)
| rename data.componentId AS Component, avail AS Availability
| table Component, Availability
&lt;/LI-CODE&gt;
&lt;PRE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bullbasin_1-1710937426197.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29819iB178DFB1BB9BA804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bullbasin_1-1710937426197.png" alt="bullbasin_1-1710937426197.png" /&gt;&lt;/span&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:43:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681372#M113852</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-03-20T16:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: No 100% results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681380#M113854</link>
      <description>&lt;P&gt;Figured it out as it was a rename messing me up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 12:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681380#M113854</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-03-20T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: No 100% results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681386#M113855</link>
      <description>&lt;P&gt;Ok I guess one last thing.&amp;nbsp; When the results for the report are 100% across the board.&amp;nbsp; I don't get any results it is blank.&amp;nbsp; There seems to be the need for a result below 100% to return all fields again.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681386#M113855</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-03-20T13:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: No 100% results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681424#M113858</link>
      <description>&lt;P&gt;A quick and ugly hack would be to run your original search (that one calculating availability) and then do&lt;/P&gt;&lt;PRE&gt;| append [ | inputlookup Component_avail.csv&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | eval Availability=100 ]&lt;BR /&gt;| stats min(Availability) as Availability by Component&lt;/PRE&gt;&lt;P&gt;Alternatively, you can define your lookup to contain both fields - Component and Availability (with Availability set to 100 across the board) and use&lt;/P&gt;&lt;PRE&gt;| inputlookup append=t Component_avail.csv&lt;/PRE&gt;&lt;P&gt;and then do the stats.&lt;/P&gt;&lt;P&gt;This way if your original search calculates some non-100% availability you'll get it in your final results. If there is no sub-100 availability calculated, you'll get the static 100 provided by the lookup.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-100-results/m-p/681424#M113858</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-20T16:52:41Z</dc:date>
    </item>
  </channel>
</rss>

