TYPE and RETYPE statements
The TYPE and RETYPE statements provide the high-level definition of the processing of an API1 or SMF record type. Code one TYPE (or TYPE and RETYPE) statement for each API1 or SMF record type that BMC AMI Datastream is to have the ability to process.
TYPE|RETYPE eventType([fieldsContext]) specificationName([CAT(category)] CEF(NAME(eventName) [ID(sigID)]) [EXITSEL(code)] [FACILITY(facility)] [FIX(num]|VAR[num])] [ID(eventID)] [PROCess(processTag])) TRIPLETCONStraint(minimum [maximum [remainder] ] )
eventType | Specifies the event type name Code a name 1–16 characters in length. The name must be unique across all event types. Do not use ALL as an event name. | ||||||||||||||||||
fieldsContext | (Optional) Normally, the fields context for a given event is the same as the eventType. However, you can override that value here. Code an optional name of 1-16 characters. | ||||||||||||||||||
specificationName | Specifies the underlying main logic for the event type Specify one of the following specification names:
| ||||||||||||||||||
CAT(category) | Certain event specifications support additional parameters beyond those shown here, and are as follows:
| ||||||||||||||||||
FACILITY(facility) | Specifies the default RFC 3164 or RFC 5427 facility code for the event type Specify one of the facility names in the Syslog-facilities-and-severities. The following table shows FACILITY defaults:
| ||||||||||||||||||
ID(eventID) | Specifies the name of a field that is used to generate the CEF Signature ID or LEEF event ID By convention these fields have names of the form CEF_LEEF_Txxx_ID if common to CEF or LEEF_Txxx_EventID if unique to LEEF. If this field is omitted, the PROCess literal is used as an alternative. | ||||||||||||||||||
PROCess(processTag) | Specifies the tag that appears at the start of syslog messages for the event, following the priority, timestamp, and host name, and preceding the formatted fields Specify the exact process tag that you include in syslog messages, including any spaces and punctuation. The processTag might be of any length from the null string (‘’) to 32 characters. If PROCess is omitted, the default value is used, as listed in the Supported-API-event-types-SMF-types-and-associated-process-tags topic. | ||||||||||||||||||
TRIPLETCONStraint(minimum [maximum [remainder] ] ) | (Optional) Provides additional validation of triplet, Get specifications at field definition time There is no additional overhead during event processing. You can specify a minimum valid offset for triplets of this record type, a maximum valid offset, and the valid alignment of triplets. The alignment is specified as a remainder on division of the triplet offset by 8. |
This section contains the following topics :