TRAFFIC_LOGCAT(8) | Apache Traffic Server | TRAFFIC_LOGCAT(8) |
NAME¶
traffic_logcat - Traffic Server log spooler
SYNOPSIS¶
traffic_logcat [-o output-file | -a] [-CEhSVw2] [input-file ...]
DESCRIPTION¶
To analyse a binary log file using standard tools, you must first convert it to ASCII. traffic_logcat does exactly that.
OPTIONS¶
Specifies where the command output is directed.
Automatically generates the output filename based on the input filename. If the input is from stdin, then this option is ignored. For example:
traffic_logcat -a squid-1.blog squid-2.blog squid-3.blog
generates:
squid-1.log squid-2.log squid-3.log
Follows the file, like tail(1) -f
Attempts to transform the input to Netscape Common format, if possible.
Attempts to transform the input to Netscape Extended format, if possible.
Attempts to transform the input to Squid format, if possible.
- -2, --elf2
Attempt to transform the input to Netscape Extended-2 format, if possible.
- -h, --help
- Print usage information and exit.
- -V, --version
- Print version information and exit.
NOTE:
If no input files are specified, then traffic_logcat reads from the standard input (stdin). If you do not specify an output file, then traffic_logcat writes to the standard output (stdout).
For example, to convert a binary log file to an ASCII file, you can use the traffic_logcat command with either of the following options below:
traffic_logcat binary_file > ascii_file traffic_logcat -o ascii_file binary_file
The binary log file is not modified by this command.
SEE ALSO¶
COPYRIGHT¶
2022, dev@trafficserver.apache.org
May 21, 2022 | 8.1 |