<?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: Timechart average bandwidth usage per transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211985#M62006</link>
    <description>&lt;P&gt;Thanks for your answer! Do you have any idea on how to calculate the average bandwidth per transaction per host? &lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 15:22:04 GMT</pubDate>
    <dc:creator>epacke</dc:creator>
    <dc:date>2015-11-04T15:22:04Z</dc:date>
    <item>
      <title>Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211979#M62000</link>
      <description>&lt;P&gt;Dear experts&lt;/P&gt;

&lt;P&gt;I must confess this post and question is not properly defined. It's more a chance to pick your brains regarding investigating bandwidth usage.&lt;/P&gt;

&lt;P&gt;We have a bunch of servers grouped by IDs. They're named as WEBXX-YY, where XX is the cluster id and YY is the node id. Each cluster serves its own application and the load is distributed between the different nodes.&lt;/P&gt;

&lt;P&gt;My task is to investigate which application is using the most bandwidth. I ran this search to check which application uses the most bandwidth:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=webfront sourcetype=iis host WEB* | eval hostname = split(host, "-") | eval hostname = mvindex(hostname,0)  | eval sumMB = ((cs_bytes*8)/(1024*1024) + (sc_bytes*8)/(1024*1024)) | timechart span=1m per_second(sumMB) by hostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But since the clusters have different amounts of clients it's not a fair comparison so my though was to find the average bandwidth per transaction per application. Defining transaction by c_ip and maxpause=1s, is there a way of measuring the average bandwidth per transaction per cluster?&lt;/P&gt;

&lt;P&gt;The result table would be:&lt;BR /&gt;
"average per_second(sumMB) per transaction", cluster&lt;/P&gt;

&lt;P&gt;I would like to present this with a timechart.&lt;/P&gt;

&lt;P&gt;Hope the question is somewhat clear?&lt;/P&gt;

&lt;P&gt;Suggestions regarding alternative approaches is most welcome!&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;BR /&gt;
Patrik&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 09:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211979#M62000</guid>
      <dc:creator>epacke</dc:creator>
      <dc:date>2015-11-03T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211980#M62001</link>
      <description>&lt;P&gt;This can easily be done if you have fields defined for &lt;CODE&gt;transactionID&lt;/CODE&gt; (or something that allows us to generate one) and &lt;CODE&gt;application&lt;/CODE&gt;; do you?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211980#M62001</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-03T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211981#M62002</link>
      <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;

&lt;P&gt;I was more thinking to use &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;transaction c_ip maxpause=1s&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;to identify individual page loads. &lt;/P&gt;

&lt;P&gt;Will that work? &lt;/P&gt;

&lt;P&gt;/Patrik&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211981#M62002</guid>
      <dc:creator>epacke</dc:creator>
      <dc:date>2015-11-03T14:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211982#M62003</link>
      <description>&lt;P&gt;Do all transactions start with the same event and can that event be identified by a field value or string inside the event?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 15:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211982#M62003</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-03T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211983#M62004</link>
      <description>&lt;P&gt;Thanks for your answer. My intention is to make each user click/page load a transaction. So for instance if  the user access /index.html that in turn refers to style.css, script.js there will be three requests:&lt;BR /&gt;
index.html&lt;BR /&gt;
style.css&lt;BR /&gt;
script.js&lt;/P&gt;

&lt;P&gt;These IIS log file entries would be considered as one transaction. Then if the user waits for more than one second before the next click it'd be considered as a new transaction.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 09:18:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211983#M62004</guid>
      <dc:creator>epacke</dc:creator>
      <dc:date>2015-11-04T09:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211984#M62005</link>
      <description>&lt;P&gt;Yes, that seems reasonable, given that there are no correlating fields that can be used to link the events.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 14:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211984#M62005</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-04T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211985#M62006</link>
      <description>&lt;P&gt;Thanks for your answer! Do you have any idea on how to calculate the average bandwidth per transaction per host? &lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211985#M62006</guid>
      <dc:creator>epacke</dc:creator>
      <dc:date>2015-11-04T15:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart average bandwidth usage per transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211986#M62007</link>
      <description>&lt;P&gt;Maybe like this (will surely need adjusting, but it should get you started):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction c_ip maxpause=1s | eval serial=_serial | stats first(duration) AS durationSeconds sum(eval(((cs_bytes*8)/(1024*1024) + (sc_bytes*8)/(1024*1024)))) AS sumMB BY c_ip serial
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;_serial&lt;/CODE&gt; part makes sure that the end result is the &lt;CODE&gt;sumMB&lt;/CODE&gt; over the entire transaction.  You will pipe the results of this search to more &lt;CODE&gt;stats&lt;/CODE&gt; stuff (e.g. &lt;CODE&gt;| eval bandwidth=sumMB/durationSeconds | stats ...&lt;/CODE&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 23:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-average-bandwidth-usage-per-transaction/m-p/211986#M62007</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-05T23:47:12Z</dc:date>
    </item>
  </channel>
</rss>

