Modifying Message Formats In The Acp Log File - Bay Networks 6300 Supplement Manual

Supplement to the remote annex administrator’s guide for unix
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Book A
Remote Annex 6300 Supplement to the Remote Annex Administrator's Guide for UNIX
You can change several other options in the same way:
/*
* Uncomment this line to select the use of the\
* standard syslog(3) facility in addition to or in\
* place of the logfile -- the value of "USE_SYSLOG"\
* is used to identify the daemon.(Comment the
* second line out to disable the normal acp log file.)
*/
/* #define USE_SYSLOG "annex" */
#define USE_LOGFILE 1
/*
* Uncomment this line to use decoded Annex peer names,\
* rather than numeric IP addresses, in the log file
* and in syslogging.
*/
/* #define USE_ANAME 1 */

Modifying Message Formats in the ACP Log File

The USE_SECONDS option in the acp_policy.h file enables messages
in the ACP log file to use a seconds-since-1970 (ten decimal digits)
format. This format is most useful for automatic ACP log file parsing
programs since these programs frequently need to do comparisons and
arithmetic on dates. This option is disabled by default.
You can enable USE_SECONDS by changing (uncommenting) the
following line:
/* #define USE_SECONDS 1*/
The standard message format in the ACP log file is:
< annex_name >:< logid >:#< port >:< yymmdd >: <hhmmss >:< service >:\
<event>:<pkts in>:<pkts out>:<bytes in>:<bytes out>:<msg>
When USE_SECONDS is enabled, the message format in the ACP log
file is:
< annex_name >:< logid >:#< port >:< seconds_since_1970 >:\
<service>:<event>:<pkts in>:<pkts out>:<bytes in>:\
<bytes out>:<msg>
Chapter 15
Using RA 6300 Security
to
#define USE_SECONDS 1
A-327

Advertisement

Table of Contents
loading

Table of Contents