Creating Message Signatures
Procedure
- Access Management > Message Signatures from the navigation menu.
- Click the arrow next to the Patterns For field drop-down box and select a device type for which you wish to create a Message Signature.
- Click Create. The Message Pattern Editor opens.
- On the General tab, highlight a message in the lower pane and click it. Your selection appears in the Sample Message pane.
- Enter a Pattern Name and Description (optional). Enable the pattern.
- Click the Field Tags tab.
- Highlight a portion of the Sample Message you want to use as a Field Tag and click Define Field. The portion selected appears grayed out. The application recognizes your selection as one of 15 common tags in the Tag Library. Further identifying information appears in the Tag Attributes section. You can edit these entries, or select different choices from the Tag name: and Extract as: lists.
- Click the Auto-Identify Tags button to automatically identify the available tags for the selected message. Click the Auto-Identify Tags drop-down arrow to specify how to separate the fields. The options are:
- To edit your grayed-out selection, click on it and click Remove or Remove All. (This does not remove the data; only the grayed-out condition.)
- If you select the Literal check box, the pattern matcher searches for that exact substring in the messages. Your selection appears in bold face type.
- To create additional tags from your selected message, highlight another portion and click Define Field again. Your second tag candidate appears grayed out. Again you can accept or edit the default Name, Description, and Type.
- In the Tag Name field, choose an existing field tag or create a new tag or leave it as <undefined>.
- To create a new tag, click the button to open Create Field Tag window. Enter the Name and Description fields. Click OK.
- Provide a Tag description (optional).
- Select the value in the Extract as field from the list. For existing fields the value appears automatically.
-
If you choose the
Regular Expression option in the
Extract as field, you must enter an expression in the
Regex extract field.
LogLogic supports the following Regular Expression Meta Characters:
Characters Description \a Matches ASCII character code 0x07. \d Matches character in the set "0123456789". \D Matches any byte not in the set "0123456789". \e The escape character. Matches ASCII character code 0x1b. \f The form-feed character. Matches ASCII character code 0x0c. \n The new line (line feed) character. Matches ASCII character code 0x0a. \r The carriage return character. Matches ASCII character code 0x0d. \s A white space. Matches white space - \t \n 0x0b \f or \r. \S A non-white space. Matches any byte not in \s. \t The tab character. Matches any byte not in 0x09. \w A word character. Matches any ASCII character in the set underscore, digits, or upper or lower case letter. \W A non-word character. Matches any bytes not in \w. \xHH Matches a byte specified by the hex code HH. There must be exactly two characters after the \x. \Q Starts a quoted region. All meta characters lose their meaning until \E. A \\ can be used to put a backlash into the region. \anything else Matches the next character. \k<name> Refers to previous named capture. [] Specifies a character class - match anything inside the brackets. A leading ^ negates the sense of the class - match anything not inside the brackets. Negated character classes are computed from the set of code in the range 0-127 - in other words no bytes with the high bit set. Within a character class the following backslash characters mean the same thing as outside the character class: \a, \d, \D, \e, \f, \n, \r, \s, \S, \t, \w, \W, and \xHH. {num} or {num:num} Specifies a repetition count for the previous regular expression. Num must be less than 16. {num} is equivalent to {0:num}. . Matches any byte: 0x00 - 0xFF. + Specifies that the previous regular expression is repeated 1 or more times. * Specifies that the previous regular expression is repeated zero or more times. ( ) (?:) Specifies capturing or non-capturing groups. (?<name>) Specifies capturing named groups. | Specifies alternation. ? Specifies that the previous regular expression is repeated zero or one time. anything else Any other character matches itself. - Click Event Type tab.
- Click the down arrow for Event name and select one from the list or create a new event type. Accept the Event description, or edit it.
- To create a new event type, click the button to open Create Event Type window. Enter the Name, and Description fields. Click OK.
- Click Validation tab, and then click the Validate button.
- Click Save. After a few moments the new Message Signature appears.
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.