XYGATE Merged Audit Reference Manual

Table Of Contents
XYGATE Merged Audit
®
Reference Manual
Chapter 3. Configuring Filters and the FILTERS File
XYPRO Technology Corporation 51 Proprietary and Confidential
Example
DATA_BEGIN
DATA_SELECT_BEGIN
FILTERTYPE NOFILTER
DATA_SELECT_END
DATA_END
The MACROFILTER. Instead of specifying the contents of the columns, you can do
more elaborate selection of audit records using a macro. A structure containing the
data that will be inserted in the tables AUDITSESSION and AUDITDATA along with
AUDITPRODUCT information and AUDITINSTALL information will be passed to this
macro in the TACL variable request.
There are some constraints on this processing:
Must be a TACL macro or routine. The macro or routine can internally execute any
non-block mode program, as long as it does not write anything to a terminal. It can,
however, write output to the spooler.
Must return a value of MATCH or NOMATCH.
If while attempting to process a MACROFILTER an error occurs, it will be written to
the EMS console and processing will continue. If the error occurs again, reporting
will be suppressed until the next successful execution. If the error is severe enough
that the TACL server ABENDS, the Mover will attempt to restart the TACL server 5
times. After the fifth attempt to restart the TACL server, the MOVER will ABEND.
Example 1: Sample Macrofilter TACL Routine
DATA_BEGIN
DATA_SELECT_BEGIN
FILTERTYPE MACROFILTER
MAXCOMPLETIONTIME 300
MACRODEFBEGIN
\NODE1.$SYSTEM.XYGATEMA.ACFILT
MACRODEFEND
DATA_SELECT_END
DATA_END
This Filter invokes the following macro:
Example 2: Macrofilter TACL Routine
?TACL ROUTINE
#frame
[#if ("[request:audit:rulename:valu:val:byte(0:6)]" '=' "FUP-255" or &
"[request:audit:rulename:valu:val:byte(0:7)]" '=' "TACL-255" or &
"[request:audit:rulename:valu:val:byte(0:10)]" '=' "SAFECOM-255" ) and &
"[request:audit:MESSAGECODE:valu:val:byte(0:4)]" '=' "XAC-I" |then|
#result MATCH
|else|
#result NOMATCH
]
#unframe