Choosing Binary Or Ascii; Using Logcat To Convert Binary Logs To Ascii; To Convert A Binary Log File To Ascii - HP P4535A - Web Cache Server Appliance Administrator's Manual

Hp cache server appliance administrator guide
Hide thumbs Also See for P4535A - Web Cache Server Appliance:
Table of Contents

Advertisement

Chapter 12

Choosing binary or ASCII

You can configure the Traffic Server to create event log files in either of the following:
ASCII - these files are human readable and can be processed using standard, off-the-shelf log analysis
tools. However, Traffic Server must perform additional processing to create the files in ASCII, resulting
is a slight increase in overhead. Also, ASCII files tend to be larger than the equivalent binary files. ASCII
log files have a
Binary - files in binary have the advantage of generating lower system overhead, as well as generally
occupying less space on the disk depending on the type of information being logged. You must, however,
use a converter application before you can read or analyze these files using standard tools. Binary log files
use a
file name extension by default.
.blog
While binary log files typically require less disk space, this is not always the case. For example, the value 0
(zero) requires only one byte to store in ASCII, but requires four bytes when stored as a binary integer. On the
other hand, if you define a custom format that logs IP addresses, a binary log file would only require four bytes
of storage per 32-bit address. However, the same IP address stored in dot notation would require around 15
characters (bytes) in an ASCII log file.
For standard log formats, you select Binary or ASCII in the Standard Event Log Formats section of the
Logging page, refer to
Using traditional custom formats‚ on page
Before selecting ASCII versus binary for your log files, consider the type of data that will be logged. Try
logging for one day using ASCII and then one day using binary. Assuming that the number of requests is
roughly the same for both days, you can calculate a rough metric comparing the two formats.
NOTE

Using logcat to convert binary logs to ASCII

You must convert a binary log file to ASCII before you can analyze it using standard tools.

To convert a binary log file to ASCII:

1. Telnet into the HP web cache appliance and select Shell Access as described in
Methods‚ on page
2. Change to the directory containing the binary log file,
3. Make sure that the
4. Enter the following command:
logcat [options] [input_filename...]
file name extension by default.
.log
Setting standard log file format options‚ on page
104.
For XML-based custom log files, in addition to the ASCII and binary options, you can
also write a log file to a pipe so that the logging data is sent to a buffer in memory. Other
processes can then read the data using standard I/O functions. The advantage of using
this option is that Traffic Server does not have to write to disk, freeing disk space for
other tasks. In addition, writing to a pipe does not stop when logging space is exhausted
because the pipe does not use disk space. Refer to
more information about the ASCII_PIPE option.
7.
utility is in your path.
logcat
101. For custom log formats, refer to
logs_xml.config‚ on page 171
Overview of Access
home/TS4/<version>/logs
Working with Log Files
for
.
108

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the P4535A - Web Cache Server Appliance and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

P4535a

Table of Contents