<?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: Can you help me with my table count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381998#M111671</link>
    <description>&lt;P&gt;The problem is you are counting by host, not by OS.&lt;/P&gt;

&lt;P&gt;Try this&lt;BR /&gt;
     index="wineventlog" sourcetype="wineventlog:" SourceName="" Type="Critique" | dedup host | join host [search index=windows sourcetype=winregistry key_path="\registry\machine\software\wow6432node\x\master\WindowsVersion" | stats values(data) as OS by host] | stats count values(host) by OS | sort - count limit=10 &lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 08:56:49 GMT</pubDate>
    <dc:creator>osakachan</dc:creator>
    <dc:date>2018-09-14T08:56:49Z</dc:date>
    <item>
      <title>Can you help me with my table count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381997#M111670</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I use the table count below :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" sourcetype="wineventlog:*" SourceName="*" Type="Critique" | dedup host  | table  _time SourceName host  | stats count by host  | sort - count limit=10 | join host [search index=windows sourcetype=winregistry key_path="\\registry\\machine\\software\\wow6432node\\x\\master\\WindowsVersion" | stats values(data) as OS by host] | table OS count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But in reality, i want not a count each time there is a new host but a global count of the OS&lt;/P&gt;

&lt;P&gt;For example actually I have:&lt;/P&gt;

&lt;P&gt;OS       Count&lt;BR /&gt;
W10    1&lt;BR /&gt;
W10    1&lt;/P&gt;

&lt;P&gt;But i need instead:&lt;/P&gt;

&lt;P&gt;OS       Count&lt;BR /&gt;
W10    2&lt;/P&gt;

&lt;P&gt;Could you help me please??&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381997#M111670</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-09-14T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my table count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381998#M111671</link>
      <description>&lt;P&gt;The problem is you are counting by host, not by OS.&lt;/P&gt;

&lt;P&gt;Try this&lt;BR /&gt;
     index="wineventlog" sourcetype="wineventlog:" SourceName="" Type="Critique" | dedup host | join host [search index=windows sourcetype=winregistry key_path="\registry\machine\software\wow6432node\x\master\WindowsVersion" | stats values(data) as OS by host] | stats count values(host) by OS | sort - count limit=10 &lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381998#M111671</guid>
      <dc:creator>osakachan</dc:creator>
      <dc:date>2018-09-14T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my table count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381999#M111672</link>
      <description>&lt;P&gt;I have no results with this code...&lt;/P&gt;</description>
      <pubDate>Sun, 16 Sep 2018 07:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/381999#M111672</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-09-16T07:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my table count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/382000#M111673</link>
      <description>&lt;P&gt;somebody for helping me please???&lt;/P&gt;</description>
      <pubDate>Sun, 16 Sep 2018 11:19:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/382000#M111673</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-09-16T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my table count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/382001#M111674</link>
      <description>&lt;P&gt;i have modified the code a few but always the same&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="windows" sourcetype="wineventlog:Application" SourceName="*" Type="Critique" OR Type="*" | dedup host   | stats count by host   |join host [search index=windows sourcetype=winregistry key_path="\\registry\\machine\\software\\wow6432node\\x\\master\\WindowsVersion" |stats values(data) as OS by host]| table OS count| sort - count limit=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Sep 2018 11:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/382001#M111674</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-09-16T11:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my table count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/382002#M111675</link>
      <description>&lt;P&gt;ohhh i found!!&lt;BR /&gt;
i have done this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="windows" sourcetype="wineventlog:Application" SourceName="*" Type="Critique" OR Type="*" | dedup host   | stats count by host   |join host [search index=windows sourcetype=winregistry key_path="\\registry\\machine\\software\\wow6432node\\airbus\\master\\WindowsVersion" |stats values(data) as OS by host]| stats count values(host) by OS | table OS count| sort - count limit=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Sep 2018 11:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-table-count/m-p/382002#M111675</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-09-16T11:38:10Z</dc:date>
    </item>
  </channel>
</rss>

