.\" Man page generated from reStructuredText. . .TH "LOG_HOSTS.CONFIG" "5" "January 24, 2017" "7.0" "Apache Traffic Server" .SH NAME log_hosts.config \- 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 . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .sp You should use the same \fI\%log_hosts.config\fP file on every Traffic Server node in your cluster. After you modify the \fI\%log_hosts.config\fP file, run the \fItraffic_ctl config reload\fP 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. .SH FORMAT .sp Each line in the \fI\%log_hosts.config\fP file has the following format: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C hostname .ft P .fi .UNINDENT .UNINDENT .sp where \fBhostname\fP is the hostname of the origin server. .sp \fBHINT:\fP .INDENT 0.0 .INDENT 3.5 You can specify keywords in the \fI\%log_hosts.config\fP file to record all transactions from origin servers with the specified keyword in their names in a separate log file. See the example below. .UNINDENT .UNINDENT .SH EXAMPLES .sp The following example configures Traffic Server to create separate log files containing all HTTP transactions for the origin servers \fBwebserver1\fP, \fBwebserver2\fP, and \fBwebserver3\fP: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C webserver1 webserver2 webserver3 .ft P .fi .UNINDENT .UNINDENT .sp The following example records all HTTP transactions from origin servers that contain \fBsports\fP in their names. For example: \fBsports.yahoo.com\fP and \fBwww.foxsports.com\fP in a log file called \fBsquid\-sport.log\fP (the Squid format is enabled): .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C sports .ft P .fi .UNINDENT .UNINDENT .SH COPYRIGHT 2015, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .