<?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: Howto Chart Fields by Host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16959#M2309</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=puppet-facts 
| stats 
    first(field1) as field1 
    first(field2) as field2 
    first(field3) as field3
    count
    sum(field4) as total_amt
    ...
  by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Jul 2010 01:16:17 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-07-08T01:16:17Z</dc:date>
    <item>
      <title>Howto Chart Fields by Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16957#M2307</link>
      <description>&lt;P&gt;I am indexing results from facter which logs information about each host.  I can get the most up to date list of these system properties by running &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="puppet-facts" | dedup host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would return a single event for each host.  My question is, how would I generate a table that would include a record for each host, and then columns consisting of the fields?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2010 23:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16957#M2307</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2010-07-07T23:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Howto Chart Fields by Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16958#M2308</link>
      <description>&lt;P&gt;Let's assume you have multiple fields values in your "puppet-facts" including duration and status.   To chart any of these in combination with host, you could do the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="puppet-facts" | dedup host | chart count by host,duration,status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above search uses the chart command to create a listing of the vent count with the host, duration, and status fields.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2010 00:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16958#M2308</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-07-08T00:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Howto Chart Fields by Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16959#M2309</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=puppet-facts 
| stats 
    first(field1) as field1 
    first(field2) as field2 
    first(field3) as field3
    count
    sum(field4) as total_amt
    ...
  by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jul 2010 01:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16959#M2309</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-08T01:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Howto Chart Fields by Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16960#M2310</link>
      <description>&lt;P&gt;This works out nicely if I have a small amount of fields to create the table as I described.  Do you know of a way to do the same thing for all fields?  Other than just hardcoding it into the searchstring?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2010 01:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16960#M2310</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2010-07-08T01:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Howto Chart Fields by Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16961#M2311</link>
      <description>&lt;P&gt;&lt;CODE&gt;sourcetype=puppet-facts | dedup host | table *&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2010 02:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-Chart-Fields-by-Host/m-p/16961#M2311</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-08T02:03:58Z</dc:date>
    </item>
  </channel>
</rss>

