<?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: Sourcetype count per host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465114#M140544</link>
    <description>&lt;P&gt;Hi @warmup031,&lt;BR /&gt;
did you tried?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index 
| stats count by sourcetype host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;host=* isn't needed because all the events has the field host and use always the index in main search.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 12:24:31 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-04-01T12:24:31Z</dc:date>
    <item>
      <title>Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465112#M140542</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to Check for each host, its sourcetype and count by Sourcetype.&lt;BR /&gt;I tried host=* | stats count by host, sourcetype&lt;/P&gt;
&lt;P&gt;But in fact I need all the sourcetypes to be set as column, and get the count by host for each sourcetype. Can you help ?&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 22:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465112#M140542</guid>
      <dc:creator>warmup031</dc:creator>
      <dc:date>2020-06-08T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465113#M140543</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats count as event_count where index=* by host sourcetype&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 12:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465113#M140543</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-04-01T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465114#M140544</link>
      <description>&lt;P&gt;Hi @warmup031,&lt;BR /&gt;
did you tried?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index 
| stats count by sourcetype host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;host=* isn't needed because all the events has the field host and use always the index in main search.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 12:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465114#M140544</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-01T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465115#M140545</link>
      <description>&lt;P&gt;Hello gcusello and adonio, I already tried thèse search but my main problem is to set each sourcetype as a column, hosts as row and  get sourcetype count valid for each host&lt;BR /&gt;
Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 12:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465115#M140545</guid>
      <dc:creator>warmup031</dc:creator>
      <dc:date>2020-04-01T12:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465116#M140546</link>
      <description>&lt;P&gt;Hi @warmup031,&lt;BR /&gt;
please, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog
| chart count OVER host BY sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465116#M140546</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-01T13:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465117#M140547</link>
      <description>&lt;P&gt;Wonderful, thank you very much Giuseppe &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465117#M140547</guid>
      <dc:creator>warmup031</dc:creator>
      <dc:date>2020-04-01T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465118#M140548</link>
      <description>&lt;P&gt;You're welcome!&lt;BR /&gt;
Ciao and Next time.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sourcetype-count-per-host/m-p/465118#M140548</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-01T13:46:41Z</dc:date>
    </item>
  </channel>
</rss>

