<?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 grab two different numbers using the rest command in the search app in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-grab-two-different-numbers-using-the-rest-command-in-the/m-p/49288#M2715</link>
    <description>&lt;P&gt;Use a main search, and use appendcols the result of the second sub search.&lt;/P&gt;

&lt;P&gt;search1 | appendcols [ search2 ] | eval mycalculation&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Appendcols"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Appendcols&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Sep 2012 09:41:56 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-09-02T09:41:56Z</dc:date>
    <item>
      <title>How to grab two different numbers using the rest command in the search app</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-grab-two-different-numbers-using-the-rest-command-in-the/m-p/49287#M2714</link>
      <description>&lt;P&gt;I am creating a dashboard to show the % of the license used for the current day. I want to grab the license quota info from the /services/licenser/stacks endpoint and the license usage info from the /services/licenser/pool endpoint then compute the percentage of license used.&lt;/P&gt;

&lt;P&gt;I know in the search app, I can do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/licenser/pools |search stack_id=download-trial |eval usage=used_bytes | fields usage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and could do the same for the quota:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/licenser/stacks | search type=download-trial |  eval lic_quota=quota | fields lic_quota
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How would I combine these two to be able to compute usage/lic_quota?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2012 07:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-grab-two-different-numbers-using-the-rest-command-in-the/m-p/49287#M2714</guid>
      <dc:creator>coleman07</dc:creator>
      <dc:date>2012-09-02T07:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to grab two different numbers using the rest command in the search app</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-grab-two-different-numbers-using-the-rest-command-in-the/m-p/49288#M2715</link>
      <description>&lt;P&gt;Use a main search, and use appendcols the result of the second sub search.&lt;/P&gt;

&lt;P&gt;search1 | appendcols [ search2 ] | eval mycalculation&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Appendcols"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Appendcols&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2012 09:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-grab-two-different-numbers-using-the-rest-command-in-the/m-p/49288#M2715</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-09-02T09:41:56Z</dc:date>
    </item>
  </channel>
</rss>

