Validating a Monitoring Policy Template

Validating a template involves testing a piece of log data against an existing template. Use this procedure to determine if a template has the necessary properties to read a particular log. For example, we recommend that you validate a template before creating a monitoring policy for text-based logs.

You can also use this procedure If you skipped the validation step during the template creation.

Procedure

  1. From the CommCell Browser, expand Policies.
  2. Right-click Monitoring Policies and click Manage Templates.
  3. In the Manage Templates dialog box, click Validate.
  4. In the Template Validation dialog box, select the template and specify the log data you want to validate:
    1. From the Select Template list, select the template on which you want to run validation tests.
    2. In the Enter text to be validated box, copy and paste one or more lines from a log that meets the properties specified in the selected template.
    3. Click Validate.

      If the validation succeeds, the table displays the columns defined in the template and their respective values extracted from the log lines. If the validation fails, use one of the following approaches:

      • If you validated a predefined template, then the template does not meet your log requirements. You might have to create your own template.
      • If you validated a template you created, check the template properties and make the required corrections. If the corrections change the original scope of the template, we suggest that you create a different template.
    4. Click OK.
  5. In the Manage Templates dialog box, click OK.