<?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 Billing report per host in splunk in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92925#M2110</link>
    <description>&lt;P&gt;Is there any chance to generate billing reports in splunk?&lt;BR /&gt;
We can see in deployment monitor charts - license usage per index, per host and so on, but is it possible to generate in easy way document (f. e. excel) with informations: how much percent of license / license cost every host is consuming? (Not only top hosts, for all of them).&lt;/P&gt;

&lt;P&gt;Thank you very much for reply, Kind regards,&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2012 09:43:54 GMT</pubDate>
    <dc:creator>deejay1</dc:creator>
    <dc:date>2012-03-15T09:43:54Z</dc:date>
    <item>
      <title>Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92925#M2110</link>
      <description>&lt;P&gt;Is there any chance to generate billing reports in splunk?&lt;BR /&gt;
We can see in deployment monitor charts - license usage per index, per host and so on, but is it possible to generate in easy way document (f. e. excel) with informations: how much percent of license / license cost every host is consuming? (Not only top hosts, for all of them).&lt;/P&gt;

&lt;P&gt;Thank you very much for reply, Kind regards,&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92925#M2110</guid>
      <dc:creator>deejay1</dc:creator>
      <dc:date>2012-03-15T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92926#M2111</link>
      <description>&lt;P&gt;Well, you could start with this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*license_usage.log" | eval lastReceived = _time | 
rename h as host b as bytes | 
stats sum(bytes) as bytes max(lastReceived) as lastReceived by host | 
eval mbytes=((bytes/1024)/1024) | 
fields host mbytes lastReceived | 
stats max(lastReceived) as lastReceived sum(mbytes) as MBytes by host | 
fieldformat lastReceived = strftime(lastReceived, "%a %F %T") | 
eventstats sum(MBytes) as totalMB | 
eval percent = round(100*MBytes/totalMB,2) | fields - totalMB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and export it to a .csv file. Once you open the file in Excel, you could add in a column to calculate the price. This search only calculates the license usage by host with a percentage.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 11:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92926#M2111</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-15T11:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92927#M2112</link>
      <description>&lt;P&gt;Thank you very much! I've just started to build report and I think this is what I need:)&lt;BR /&gt;
I have another question - have you any idea, why main license-consuming host is.. blank?&lt;/P&gt;

&lt;P&gt;Also in deployment monitor there was this host with blank hostname.&lt;/P&gt;

&lt;P&gt;Thank you for an answer!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 13:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92927#M2112</guid>
      <dc:creator>deejay1</dc:creator>
      <dc:date>2012-03-15T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92928#M2113</link>
      <description>&lt;P&gt;Hmm, I would look in $SPLUNK_HOME/etc/system/local/inputs.conf on each host/forwarder. There is a line in the file that defines the default host name for data originating on that host. Look for host= but no value supplied.&lt;/P&gt;

&lt;P&gt;Also, if it is happening to only part of the data from a host, you may have a stanza in inputs.conf or props.conf that simply says host= . You will want to fix this quick!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 17:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92928#M2113</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-15T17:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92929#M2114</link>
      <description>&lt;P&gt;Hmm, aren't the records with an ampety host some kind of intermediary summary per sourcetype? I can't find anything in our deployment apps which would result in an empty host, although we'll check it on the servers themselves during the week.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2012 19:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92929#M2114</guid>
      <dc:creator>deejay1</dc:creator>
      <dc:date>2012-03-18T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92930#M2115</link>
      <description>&lt;P&gt;We have changed $SPLUNK_HOME/etc/system/local/inputs.conf and we are sure, that there are hostnames.&lt;BR /&gt;
But still host, that is consuming more than 90% of lciense, is an empty host.&lt;BR /&gt;
Also in deployment monitor.&lt;/P&gt;

&lt;P&gt;do you have any idea?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 10:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92930#M2115</guid>
      <dc:creator>deejay1</dc:creator>
      <dc:date>2012-03-23T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Billing report per host in splunk</title>
      <link>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92931#M2116</link>
      <description>&lt;P&gt;I don't know why you aren't seeing a host name. But you can try this variation, which will show the host sourcetype and source. Perhaps that will give you more information about what is going on. And there isn't any intermediary summary by sourcetype that I know of...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*license_usage.log" | eval lastReceived = _time | 
rename h as host b as bytes st as sourcetype s as source | 
stats sum(bytes) as bytes max(lastReceived) as lastReceived by host sourcetype source| 
eval mbytes=((bytes/1024)/1024) | 
fields host sourcetype source mbytes lastReceived | 
stats max(lastReceived) as lastReceived sum(mbytes) as MBytes by host sourcetype source| 
fieldformat lastReceived = strftime(lastReceived, "%a %F %T") | 
eventstats sum(MBytes) as totalMB | 
eval percent = round(100*MBytes/totalMB,2) | fields - totalMB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2012 19:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Billing-report-per-host-in-splunk/m-p/92931#M2116</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-27T19:33:12Z</dc:date>
    </item>
  </channel>
</rss>

