<?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: Lookup file as a base how do I get count of installs based on the names in my lookup in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409234#M925</link>
    <description>&lt;P&gt;@sandeepshah81,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;your-lookup&amp;gt; | join type=left software_name [&amp;lt;query to get data from index&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;software_name&lt;/CODE&gt; is field name in index data as well as in lookup. If you have different field name in index and lookup you can &lt;BR /&gt;
 &lt;CODE&gt;rename&lt;/CODE&gt; on one of the side to make them same.&lt;/P&gt;

&lt;P&gt;Hope this fulfill your requirement.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 11:38:46 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2019-06-06T11:38:46Z</dc:date>
    <item>
      <title>Lookup file as a base how do I get count of installs based on the names in my lookup</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409233#M924</link>
      <description>&lt;P&gt;I have a lookup file which only contains one single column with names of all Software updates, I need compliance for.&lt;/P&gt;

&lt;P&gt;I have a pivot query which provides details of each Software Update name along with its State if Install or applied.&lt;/P&gt;

&lt;P&gt;How do i write a query using combination of pivot query and my lookup file. so that my result is only for the list of names in my lookup instead of all software updates list available in index.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 09:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409233#M924</guid>
      <dc:creator>sandeepshah81</dc:creator>
      <dc:date>2019-06-06T09:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup file as a base how do I get count of installs based on the names in my lookup</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409234#M925</link>
      <description>&lt;P&gt;@sandeepshah81,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;your-lookup&amp;gt; | join type=left software_name [&amp;lt;query to get data from index&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;software_name&lt;/CODE&gt; is field name in index data as well as in lookup. If you have different field name in index and lookup you can &lt;BR /&gt;
 &lt;CODE&gt;rename&lt;/CODE&gt; on one of the side to make them same.&lt;/P&gt;

&lt;P&gt;Hope this fulfill your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 11:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409234#M925</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-06T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup file as a base how do I get count of installs based on the names in my lookup</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409235#M926</link>
      <description>&lt;P&gt;thanks.. I was having same query.. but the count was not giving good reslts.. so trying ot see what is wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 11:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409235#M926</guid>
      <dc:creator>sandeepshah81</dc:creator>
      <dc:date>2019-06-06T11:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup file as a base how do I get count of installs based on the names in my lookup</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409236#M927</link>
      <description>&lt;P&gt;Post your query, I'll check if I can help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 11:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409236#M927</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-06T11:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup file as a base how do I get count of installs based on the names in my lookup</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409237#M928</link>
      <description>&lt;P&gt;So what we are targetting to get out of this is , Even though it should show per update how many PC's are installed with, Fnal status should be overall compliance for all updates as percentage.&lt;/P&gt;

&lt;P&gt;Instead of join, I am using lookup file and not using inputlookup option as I assume this is faster than Join.  Let me know if that is wrong assumption.&lt;/P&gt;

&lt;P&gt;1 lookup file is with list of all PC's in our environment..  second lookup is Software Updates which I want to show compliance for.&lt;/P&gt;

&lt;P&gt;| pivot &lt;CODE&gt;uA_DM_Application_SoftwareUpdateInventory&lt;/CODE&gt; Application_SoftwareUpdateInventory&lt;BR /&gt;
                     latest(DisplayName) as DisplayName&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                splitrow
                Guid
                splitrow
                 State
                 splitrow
                 host
                  filter host in (*)
                  filter State in (install)


              |rename host as Host
              |lookup UKDesktopAsset.csv Host OUTPUT Host as host
              |eventstats count(host) as TotalHosts
              |lookup SoftwareUpdate.csv DisplayName Output DisplayName 
              |where Host=host AND DisplayName=DisplayName 
              |eval Percentage=round("Install Count per Update"/TotalHosts)*100,2)
              | stats  dc(host) as "Install Count per Update" by
                 Guid
                 DisplayName
                State


              | sort limit=0 "Install Count per Update" desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2019 12:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Lookup-file-as-a-base-how-do-I-get-count-of-installs-based-on/m-p/409237#M928</guid>
      <dc:creator>sandeepshah81</dc:creator>
      <dc:date>2019-06-06T12:50:26Z</dc:date>
    </item>
  </channel>
</rss>

