syslog を使用して監査イベントを作成するように監査機能を構成し、イベントの送信先を指定することができます。
構成は audit.cfg ファイルで指定します。このファイルは、Visual COBOL の bin ディレクトリ %ProgramFiles(x86)%\Micro Focus\Visual COBOL\bin(Windows) または$COBDIR/bin(UNIX) に格納する必要があります。構成ファイルは、セクション、プロパティ、および値を含む標準の INI ファイル形式に従います。
構成ファイルは監査プロセスの初期化時に読み込まれます。構成ファイルに対する変更は、実行中の監査プロセスでは取り込まれません。変更した構成ファイルを再ロードするには、監査プロセスを再起動する必要があります。
[audit] ; The type of emitter used to output audit events. Valid values: syslog or oldaudit emitter=syslog ; This section is for configuring the syslog emitter [syslog] ; The hostname and port of the syslog collector, where the syslog packets are sent. ; The hostname may be a host name string, dotted IPv4 or hex IPv6 notation. hostname=127.0.0.1 port=1468 ; All configuration values for syslog below this point are optional. ; tzKnown: If the timezone of this machine is known, this value should be 1. If not, it should be zero. tzKnown=0 ; isSynced: If this machine's clock is synced to a known external source, this must be set to 1. Otherwise, it must be zero. isSynced=0 ; syncAccuracy: The accuracy to which the machine's clock is synced. This is an integer, in microseconds, that the machine's clock may be off. syncAccuracy=0 ; ip: The IP address of this machine. This may be a comma-delimited list, in the case of multi-homed devices. ip=192.168.0.1 ; Configure how long (in seconds) the syslog emitter should spend attempting to re-send data if a failure occurs. ; The application will continue retrying until a time (approximately) equal to this value has elapsed. maxRetryTime=30