DEF and REDEF statements
DEF and REDEF define and redefine a field with the following syntax:
DEF|REDEF name tag context( [CEF(tag)] [TAGSUBst(REP)] ) FormatSpecification(…) GetSpecification(…) [CondSpecification(…)] [DESC(description)]
The following table summarizes the required statements:
Statement | Descriptions | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DEF REDEF | Must be specified as the following:
| ||||||||||||||||||||||||||||||||||||
name | Specifies the name of this field. The name is required and, within the specified context, must be unique (for DEF) or should be previously defined (for REDEF). Specify one to twenty alphanumeric characters. | ||||||||||||||||||||||||||||||||||||
context | Specifies the type of event to which the field applies. Specify a context specified in a preceding TYPE or RETYPE statement, or one of the contexts in the following table. This operand is required.
| ||||||||||||||||||||||||||||||||||||
tag | Specifies the tag that is used to identify the data in the syslog messages. Specify zero to 22 alphanumeric characters. Tag is required to specify a null tag, code '' or "" (two adjacent quotation marks). If you specify TAGSUBst, then the tag might contain a substitution specifier. A substitution specifier begins with a % character and has the format %[flags][width][.precision]%|o|u|x|X. For a complete discussion of substitution specifiers, see the IBM Knowledge Center. The following is a description of the most common values:
The tag as specified, including any substitution specifier, might not exceed 22 characters. The tag after substitution might not exceed 40 characters. If you code an invalid format code, the result is not defined but generally no corresponding output is produced: a format code of %z is formatted as the empty string. Examples of tag substitution are as following:
| ||||||||||||||||||||||||||||||||||||
ARRAY() | Specifies that the field is to be formatted as an array. An array has a single tag and zero or more values contained between square braces. | ||||||||||||||||||||||||||||||||||||
CEF(ceftag) | Specifies the tag that is used to identify the data in syslog messages if OPTIONS SIEMTYPE(CEF). Specify one of the extension names in the CEF documentation. If you specify one of the custom CEF fields such as cs1, then the field tag becomes the custom field label (cs1Label=tag). CEF(ceftag) is optional; if you omit it, then the field is a non-CEF field and is included in the msg= portion of the CEF extension when SIEMTYPE(CEF). | ||||||||||||||||||||||||||||||||||||
NOPARM() | Specifies that the field is an internal field and might not be coded in the FIELD() parameter of an EVENT or SMF statement. NOPARM is set automatically if the Get Specification is GFlist, but not if the Get Specification calls GFlist indirectly, such as, GTriplet(GFlist(… or GIfElse(… GFlist … | ||||||||||||||||||||||||||||||||||||
TAGSUBst(REP) | Specifies that the field’s tag might contain substitution specifiers, and that the repetition number of the field is to be substituted for the substitution specifier. For fields based on a Get Specification that provides potential field or section repetition, such as GArray, GIndexed and GTriplet, the repetition number is a positive integer that starts at 1 for the first section or data and is incremented by 1 for each repetition of the section or data. The repetition number is always 1 for fields based on a Get Specification that does not provide repetition. If you specify TAGSUBst with a tag that does not include a substitution specifier, then there is no harm other than a slight increase in overhead; if you omit TAGSUBst with a tag that includes a substitution specifier, then no substitution is performed and the substitution specifier appears literally in the formatted tag. | ||||||||||||||||||||||||||||||||||||
FormatSpecification(…) | Specifies the name of a Format Specification, and the parameters for that Format Specification. The Format Specification specifies how the field is to be formatted. FormatSpecification is required. | ||||||||||||||||||||||||||||||||||||
GetSpecification(…) | Specifies the name of a Get Specification and its parameters Get Specification specifies where the field data is to be located. For example, GBase(22 4) specifies that the field is in the base portion of the SMF record at displacement 22 and is four bytes long. The Get Specification is required. | ||||||||||||||||||||||||||||||||||||
ConditionSpecification(…) | Specifies the name of a Condition Specification as listed, and the parameters for that Condition Specification. The Condition Specification specifies under what conditions the field is present in the Event record. The Condition Specification is optional; if no Condition Specification is specified then BMC AMI Defender for z/OS attempts to format the field for every event of context type. | ||||||||||||||||||||||||||||||||||||
DESC(description) | Specifies an optional description for the field. This field serves only as documentation. It must be syntactically valid but is not processed or stored by BMC AMI Defender for z/OS in any way. |
This section contains the following topics :
Related topic