xenial (5) log_hosts.config.5.gz

Provided by: trafficserver_5.3.0-2ubuntu2_amd64 bug

NAME

       log_hosts.config - Traffic Server log host configuration file

       To record HTTP transactions for different origin servers in separate log files, you must list each origin
       server hostname in the log_hosts.config file. In addition, you must enable the httphostlogsplitting  foo!
       ...  <../working-log-files#HTTPHostLogSplitting>`_  option. You should use the same log_hosts.config file
       on every Traffic Server node in your cluster.  After  you  modify  the  log_hosts.config  file,  run  the
       traffic_line -x command to apply the changes.  When you apply the changes to a node in a cluster, Traffic
       Server automatically applies the changes to all other nodes in the cluster.

FORMAT

       Each line in the log_hosts.config file has the following format:

          hostname

       where hostname is the hostname of the origin server.

       HINT:
          You can specify keywords in the log_hosts.config file to record all transactions from  origin  servers
          with the specified keyword in their names in a separate log file. See the example below.

EXAMPLES

       The  following  example  configures  Traffic  Server  to  create  separate  log files containing all HTTP
       transactions for the origin servers webserver1, webserver2, and webserver3:

          webserver1
          webserver2
          webserver3

       The following example records all HTTP transactions from origin servers  that  contain  sports  in  their
       names.  For  example:  sports.yahoo.com  and  www.foxsports.com in a log file called squid-sport.log (the
       Squid format is enabled):

          sports

       2014, dev@trafficserver.apache.org