<?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: finding the percent difference between two searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175386#M50347</link>
    <description>&lt;P&gt;Neither of these provide me with 3 columns.  which is what I am needing.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2014 20:53:24 GMT</pubDate>
    <dc:creator>mileven</dc:creator>
    <dc:date>2014-03-05T20:53:24Z</dc:date>
    <item>
      <title>finding the percent difference between two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175384#M50345</link>
      <description>&lt;P&gt;I have the below search.  I'm trying to get the % difference between the first count which pulls from a CSV file and the second count which pulls form the splunk server.  Yet the final statement doesn't seem to work properly.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|Inputlookup PSLSE_Inventory.csv | search AssetEnv=* | chart count  AS "Inventory" by AssetEnv| appendcols [search host=* AssetEnv=* | dedup host | chart count AS Reporting by AssetEnv] |appendcols [eval mypercentage = 100 * (count/Reporting) |chart count mypercentage]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175384#M50345</guid>
      <dc:creator>mileven</dc:creator>
      <dc:date>2014-03-05T20:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: finding the percent difference between two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175385#M50346</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|Inputlookup PSLSE_Inventory.csv | search AssetEnv= | chart count AS Inventory by AssetEnv| appendcols [search host=* AssetEnv=* | dedup host | chart count AS Reporting by AssetEnv] | eval mypercentage=(100*Inventory)/Reporting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|Inputlookup PSLSE_Inventory.csv | search AssetEnv= | chart count AS Inventory by AssetEnv| join type=left AssetEnv [search host=* AssetEnv=* | dedup host | chart count AS Reporting by AssetEnv] | eval mypercentage=(100*Inventory )/Reporting
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175385#M50346</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-05T20:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: finding the percent difference between two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175386#M50347</link>
      <description>&lt;P&gt;Neither of these provide me with 3 columns.  which is what I am needing.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175386#M50347</guid>
      <dc:creator>mileven</dc:creator>
      <dc:date>2014-03-05T20:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: finding the percent difference between two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175387#M50348</link>
      <description>&lt;P&gt;Are you getting two column result with this? How is the value in count field, they come for all the events or some of them are blank&lt;/P&gt;

&lt;P&gt;|Inputlookup PSLSE_Inventory.csv | search AssetEnv= | chart count AS "Inventory" by AssetEnv| join type=left AssetEnv [search host=* AssetEnv=* | dedup host | chart count AS Reporting by AssetEnv]&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175387#M50348</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-05T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: finding the percent difference between two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175388#M50349</link>
      <description>&lt;P&gt;also, try updated queries.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 20:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175388#M50349</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-05T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: finding the percent difference between two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175389#M50350</link>
      <description>&lt;P&gt;I am able to get 2 columns with the values I'm looking for but I would like to get the % difference between the 2.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-the-percent-difference-between-two-searches/m-p/175389#M50350</guid>
      <dc:creator>mileven</dc:creator>
      <dc:date>2014-03-10T17:31:40Z</dc:date>
    </item>
  </channel>
</rss>

