Chapter 8, Understanding Log Files
191
Flushing the Log Buffer
Flushing the Log Buffer
You can flush the log buffer instantaneously or at a schedule other than the
default time by setting buffer-flush in the
logbufInit
function in
obj.conf
.
The value should be in milliseconds and greater that 0. For example:
int logbuf_init(pblock *args) {
char err[MAGNUS_ERROR_LEN];
char *t;
logbuf_size = 0;
logbuf_flush = DEFAULT_LOGBUF_FLUSH;
if((t = pblock_findval("buffer-size", args)) ) {
logbuf_size = atoi(t);
if(logbuf_size < 0) {
util_snprintf(err, MAGNUS_ERROR_LEN, "buffer size of %d is
invalid", logbuf_size);
pblock_nvinsert("error", err, args);
return REQ_ABORTED;
}
if(logbuf_size < (REQ_MAX_LINE * 2))
logbuf_size = REQ_MAX_LINE * 2;
}
if( (t = ("buffer-flush", args)) ) {
logbuf_flush = atoi(t) * 1000;
if(logbuf_flush < 0) {
util_snprintf(err, MAGNUS_ERROR_LEN,"flush rate of %d
seconds is invalid", logbuf_flush);
pblock_nvinsert("error", err, args);
return REQ_ABORTED;
}
}
}
return REQ_PROCEED;
}
Running the Log Analyzer
The
server-install
/extras/log_anly
directory contains the log
analysis tool that runs through the Server Manager. This log analyzer analyzes
files in common log format only. The HTML document in the
log_anly
directory that explains the tool’s parameters. The
server-install
/
extras/flex_anlg
directory contains the command-line log analyzer for the
Summary of Contents for Netscape Enterprise Server
Page 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Page 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Page 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Page 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Page 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Page 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Page 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Page 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Page 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Page 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Page 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Page 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Page 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Page 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Page 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Page 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Page 504: ...504 Netscape Enterprise Server Administrator s Guide ...