<?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: Building report with options in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236976#M4785</link>
    <description>&lt;P&gt;Looks like I need to get off my nethers and learn to work w/ Pivot tables.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2016 19:16:24 GMT</pubDate>
    <dc:creator>banderson7</dc:creator>
    <dc:date>2016-03-07T19:16:24Z</dc:date>
    <item>
      <title>Building report with options</title>
      <link>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236975#M4784</link>
      <description>&lt;P&gt;We've built a report for ~150 hosts and a big filtered list of the eventlogs. My fields are Host, EventCode, SourceName, sourcetype, Message &amp;amp; Count. Currently, I have a count of eventcodes per host, but it's been requested that I get a count of eventcodes of all the hosts, preferably in the same report.&lt;BR /&gt;
Also, my message field is truncated to 75 characters. It's also been requested that the full message be readable as easily as possible. Below is my query: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=server OR index=lansweeper OR index=wineventlog OR index=windows OR index=adhoc_audit) tag::host=PHI (source="WinEventLog:System" OR source="WinEventLog:Security" OR source="WinEventLog:Application" OR source="WinEventLog:Directory Service" OR source=ls-winevent) SourceName!=TAAG.SchedulingService SourceName!=Paradigm.PCMS.Session SourceName!=W32Time SourceName!="ASP.NET*" SourceName!=".NET Runtime" SourceName!=Microsoft-Windows-WAS SourceName!=Paradigm.Vito.PCMS.Session SourceName!=LogSrcTraxCS.Message997I5 SourceName!=MSSQL$* SourceName!="Windows Update Agent" SourceName!="Phantom Call service" SourceName!=SQLISPackage100 EventCode!=592 EventCode!=593 EventCode!=562 EventCode!=567 EventCode!=540 EventCode!=564 EventCode!=538 EventCode!=594 EventCode!=600 EventCode!=560  SourceName!="Director Agent"  SourceName!=MR_MONITOR  EventCode!=18264  SourceName!="Microsoft-Windows-WMI"  SourceName!=vmStatsProvider  SourceName!=".NET Runtime 2.0 Error Reporting"  EventCode!=6013  EventCode!=4634  SourceName!="Microsoft-Windows-Kernel-General"  SourceName!=SQLISPackage  EventCode!=7036 | eval Message=substr(Message,1,75)             | stats  count(EventCode) as COUNT by host, EventCode,SourceName,sourcetype, Message             | sort  + COUNT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, I'm thinking it would look something like EventCode Count, then expanding the eventcode would give me a list of hosts and their count. Is this possible in Splunk?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236975#M4784</guid>
      <dc:creator>banderson7</dc:creator>
      <dc:date>2016-03-07T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Building report with options</title>
      <link>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236976#M4785</link>
      <description>&lt;P&gt;Looks like I need to get off my nethers and learn to work w/ Pivot tables.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 19:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236976#M4785</guid>
      <dc:creator>banderson7</dc:creator>
      <dc:date>2016-03-07T19:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Building report with options</title>
      <link>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236977#M4786</link>
      <description>&lt;P&gt;Swap this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | stats  count(EventCode) as COUNT by host, EventCode,SourceName,sourcetype, Message | sort  + COUNT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top limit=0 EventCode by host | addtotals col=t row=f labelfield=host label="TOTAL"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 23:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236977#M4786</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-03-07T23:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Building report with options</title>
      <link>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236978#M4787</link>
      <description>&lt;P&gt;That gave me host,eventcode,count,percent fields, and I'm uncertain what the percentage ... is a percentage of.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 13:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Building-report-with-options/m-p/236978#M4787</guid>
      <dc:creator>banderson7</dc:creator>
      <dc:date>2016-03-08T13:23:20Z</dc:date>
    </item>
  </channel>
</rss>

