Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Configuration Files > log_hosts.config
log_hosts.config
Help | Content Gateway | Version 8.0.x
To record HTTP/FTP transactions for different origin servers in separate log files, you must list each origin server's hostname in the log_hosts.config file. In addition, you must enable the HTTP host splitting option (see HTTP host log splitting).
 
Note 
It is recommended that you use the same log_hosts.config file on every Content Gateway node in your cluster.
 
Important 
After you modify this file, run content_line -x from the Content Gateway bin directory (/opt/WCG/bin) to apply the changes. When you apply the changes to a node in a cluster, Content Gateway applies the changes to all 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.
 
Note 
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 Content Gateway to create separate log files containing all HTTP/ FTP transactions for the origin servers webserver1, webserver2, and webserver3.
webserver1
webserver2
webserver3
The following example records all HTTP and FTP 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

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Configuration Files > log_hosts.config
Copyright 2016 Forcepoint LLC. All rights reserved.