:tocdepth: 3

policy/misc/app-stats/main.bro
==============================
.. bro:namespace:: AppStats

AppStats collects information about web applications in use
on the network.  

:Namespace: AppStats
:Imports: :doc:`base/frameworks/sumstats </scripts/base/frameworks/sumstats/index>`, :doc:`base/protocols/http </scripts/base/protocols/http/index>`, :doc:`base/protocols/ssl </scripts/base/protocols/ssl/index>`
:Source File: :download:`/scripts/policy/misc/app-stats/main.bro`

Summary
~~~~~~~
Options
#######
=========================================================================== ============================================================
:bro:id:`AppStats::break_interval`: :bro:type:`interval` :bro:attr:`&redef` The frequency of logging the stats collected by this script.
=========================================================================== ============================================================

Types
#####
============================================== =
:bro:type:`AppStats::Info`: :bro:type:`record` 
============================================== =

Redefinitions
#############
========================================== =
:bro:type:`Log::ID`: :bro:type:`enum`      
:bro:type:`connection`: :bro:type:`record` 
========================================== =


Detailed Interface
~~~~~~~~~~~~~~~~~~
Options
#######
.. bro:id:: AppStats::break_interval

   :Type: :bro:type:`interval`
   :Attributes: :bro:attr:`&redef`
   :Default: ``15.0 mins``

   The frequency of logging the stats collected by this script.

Types
#####
.. bro:type:: AppStats::Info

   :Type: :bro:type:`record`

      ts: :bro:type:`time` :bro:attr:`&log`
         Timestamp when the log line was finished and written.

      ts_delta: :bro:type:`interval` :bro:attr:`&log`
         Time interval that the log line covers.

      app: :bro:type:`string` :bro:attr:`&log`
         The name of the "app", like "facebook" or "netflix".

      uniq_hosts: :bro:type:`count` :bro:attr:`&log`
         The number of unique local hosts using the app.

      hits: :bro:type:`count` :bro:attr:`&log`
         The number of hits to the app in total.

      bytes: :bro:type:`count` :bro:attr:`&log`
         The total number of bytes received by users of the app.



