<?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: How to search Apache access_log data to find bandwidth usage as total number of bytes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216800#M63661</link>
    <description>&lt;P&gt;Hope this helps you.&lt;/P&gt;

&lt;P&gt;Apache access_log sample:&lt;BR /&gt;
127.0.0.1 - - [22/Jun/2016:15:19:48 -0700] "GET /uri/sample/path HTTP/1.1" 200 20 15515&lt;/P&gt;

&lt;P&gt;I created an extracted field called apache_byte_size on the second column from the very right.  In this example the number of bytes = 20.  I change the search to the time frame that I want.&lt;/P&gt;

&lt;P&gt;Sample Splunk search:&lt;BR /&gt;
index=apache host=hostname sourcetype=access_log | stats sum(apache_byte_size)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:01:50 GMT</pubDate>
    <dc:creator>wongea</dc:creator>
    <dc:date>2020-09-29T10:01:50Z</dc:date>
    <item>
      <title>How to search Apache access_log data to find bandwidth usage as total number of bytes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216797#M63658</link>
      <description>&lt;P&gt;I can pull the Apache access_log into Splunk, but I can't figure out now to write a search that will give the total number of bytes that Apache sends to browsers over a period of time.  Anyone have one to share?  &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216797#M63658</guid>
      <dc:creator>spunkyg</dc:creator>
      <dc:date>2016-06-22T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search Apache access_log data to find bandwidth usage as total number of bytes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216798#M63659</link>
      <description>&lt;P&gt;what's the format of your logs? can you show some sample events with fields?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 21:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216798#M63659</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2016-06-22T21:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to search Apache access_log data to find bandwidth usage as total number of bytes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216799#M63660</link>
      <description>&lt;P&gt;I think we are using the combined log format.  In the sample entries below, empty fields are indicated by hyphens.  The number of bytes sent to the client browser is indicated in the seventh field from the left.  In the first sample, the value for bytes is 12.  In the second sample, it is 8369.&lt;/P&gt;

&lt;P&gt;10.107.88.13 - - [22/Jun/2016:03:43:24 -0500] "GET /" 200 12 "-" "-" - - - "-" "-" libweb-devel-cluster.example.com 80 SSL-off 2507 49683 -&lt;/P&gt;

&lt;P&gt;68.180.229.190 - - [22/Jun/2016:04:22:49 -0500] "GET /tejanovoices/interview.php?cmasno=113 HTTP/1.1" 200 8369 "-" "Mozilla/5.0 (c&lt;BR /&gt;
ompatible; Yahoo! Slurp; &lt;A href="http://help.yahoo.com/help/us/ysearch/slurp)"&gt;http://help.yahoo.com/help/us/ysearch/slurp)&lt;/A&gt;" - - - "-" "library.example.com" library.example.com 80 SSL-off 4447&lt;BR /&gt;
1 44226 +&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216799#M63660</guid>
      <dc:creator>spunkyg</dc:creator>
      <dc:date>2016-06-22T22:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to search Apache access_log data to find bandwidth usage as total number of bytes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216800#M63661</link>
      <description>&lt;P&gt;Hope this helps you.&lt;/P&gt;

&lt;P&gt;Apache access_log sample:&lt;BR /&gt;
127.0.0.1 - - [22/Jun/2016:15:19:48 -0700] "GET /uri/sample/path HTTP/1.1" 200 20 15515&lt;/P&gt;

&lt;P&gt;I created an extracted field called apache_byte_size on the second column from the very right.  In this example the number of bytes = 20.  I change the search to the time frame that I want.&lt;/P&gt;

&lt;P&gt;Sample Splunk search:&lt;BR /&gt;
index=apache host=hostname sourcetype=access_log | stats sum(apache_byte_size)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216800#M63661</guid>
      <dc:creator>wongea</dc:creator>
      <dc:date>2020-09-29T10:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to search Apache access_log data to find bandwidth usage as total number of bytes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216801#M63662</link>
      <description>&lt;P&gt;Based on your answer, I created the following search that works in our load-balanced environment.  Thank you!&lt;/P&gt;

&lt;P&gt;source="/var/log/httpd/access_log" host="webprod-1.example.com" OR host="webprod-2.example.com" | stats sum(bytes)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-Apache-access-log-data-to-find-bandwidth-usage-as/m-p/216801#M63662</guid>
      <dc:creator>spunkyg</dc:creator>
      <dc:date>2016-06-23T13:46:46Z</dc:date>
    </item>
  </channel>
</rss>

