<?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 search result in data and put it in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465496#M131153</link>
    <description>&lt;P&gt;If this post solved you problem please mark it as an answer. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 16:22:11 GMT</pubDate>
    <dc:creator>diogofgm</dc:creator>
    <dc:date>2019-08-29T16:22:11Z</dc:date>
    <item>
      <title>How to search result in data and put it in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465491#M131148</link>
      <description>&lt;P&gt;I need to create a table from the results in the query below. where the utilization is greater than or equal to .7.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test cluster="*"| bin _time span=1d|eval time=(time)|eventstats sum(dscapacityGB) as capacity sum(dsfreeGB) as free sum(dsgarbageGB) as garbage sum(vmdkallocGB) as vmdkallocated sum(vmdkusedGB) as vmdkused by cluster, _time|eval over_allocated =  round((vmdkallocated/free*100),2)|eval utilization= round(((vmdkused+garbage)/capacity),2)|eval capacity = round((capacity),2)|eval free = round((free),2)|
eval garbage = round((garbage),2)|eval vmdkallocated = round((vmdkallocated),2)|eval vmdkused = round((vmdkused),2)|dedup _time cluster|where utilization&amp;gt;=.7|table _time cluster capacity free garbage vmdkallocated vmdkused over_allocated utilization
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please feel free to rewrite my code, I know its not  efficient or pretty. I'm still learning splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 23:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465491#M131148</guid>
      <dc:creator>codedtech</dc:creator>
      <dc:date>2019-08-28T23:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to search result in data and put it in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465492#M131149</link>
      <description>&lt;P&gt;what's the problem you're trying to have solve? Isn't this working?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 23:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465492#M131149</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-28T23:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to search result in data and put it in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465493#M131150</link>
      <description>&lt;P&gt;I for some reason can't get only the values that are above .7 to display in the table, if I run it like this I get over 1000 results. I'm trying to use this to create an alert that will be distributed via email to the rest of the guys I work with.  I need to cut that down to only the results that are greater than or equal to .7&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 23:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465493#M131150</guid>
      <dc:creator>codedtech</dc:creator>
      <dc:date>2019-08-28T23:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to search result in data and put it in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465494#M131151</link>
      <description>&lt;P&gt;try removing the &lt;CODE&gt;|where&lt;/CODE&gt;and check the final table for the utilisation values. if all seems ok and you're able to find utilization greater than 0.7 (also try using the 0 before the . ) add the &lt;CODE&gt;|where&lt;/CODE&gt; after the &lt;CODE&gt;|table&lt;/CODE&gt; . If this still does not work, replace the &lt;CODE&gt;|where&lt;/CODE&gt; with &lt;CODE&gt;|search&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 00:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465494#M131151</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-29T00:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to search result in data and put it in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465495#M131152</link>
      <description>&lt;P&gt;This worked thank you&lt;/P&gt;

&lt;P&gt;index=test cluster="*"| bin _time span=1d|eval time=(time)|eventstats sum(dscapacityGB) as capacity sum(dsfreeGB) as free sum(dsgarbageGB) as garbage sum(vmdkallocGB) as vmdkallocated sum(vmdkusedGB) as vmdkused by cluster, _time|eval over_allocated =  round((vmdkallocated/free),2)|eval utilization= round(((vmdkused+garbage)/capacity),2)|eval capacity = round((capacity),2)|eval free = round((free),2)|&lt;BR /&gt;
     eval garbage = round((garbage),2)|eval vmdkallocated = round((vmdkallocated),2)|eval vmdkused = round((vmdkused),2)|dedup _time cluster|table _time cluster capacity free garbage vmdkallocated vmdkused over_allocated utilization|where utilization&amp;gt;=0.75|sort -utilization&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465495#M131152</guid>
      <dc:creator>codedtech</dc:creator>
      <dc:date>2020-09-30T01:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search result in data and put it in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465496#M131153</link>
      <description>&lt;P&gt;If this post solved you problem please mark it as an answer. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-result-in-data-and-put-it-in-a-table/m-p/465496#M131153</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-29T16:22:11Z</dc:date>
    </item>
  </channel>
</rss>

