- 3 minutes to read

Add or manage Stylesheet

Transform logged messages into user-friendly formats for self-service Log Views and alarm notifications.

A Stylesheet is associated with one or more Message Types to render user-friendly output for logged messages (Log Events) and alert notifications sent by Alarm Plugins.

Key capabilities:

  • Transform XML messages with XSLT into HTML or other XML formats
  • Transform JSON messages with Liquid templates
  • Preview output before deploying to production
  • Associate one stylesheet with multiple Message Types
  • Customize display for both Log Views and email alerts

Add Stylesheet

Click the 'Add stylesheet' button to create a new Stylesheet for use with selected Message Types.
Add Stylesheet
Example of the Add Stylesheet button location.

Enter the required Name and optional Description:

  • Name - Required to create the Stylesheet
  • Description - Optional details about the stylesheet's purpose

Empty stylesheet
Enter the mandatory name and optional description for your Stylesheet.

Next, select the type of stylesheet. Currently, the following two formats are supported:

  1. XSLT - for XML transformations
  2. Liquid - for JSON transformations

Type
Select the type of Stylesheet to use.

XSLT

XSLT stands for EXtensible Stylesheet Language Transformations, and is a style sheet language for XML documents.

Use XSLT to format XML messages into other XML formats or HTML.

Liquid

If the message body is JSON you can use Liquid instead of XSLT to produce your output.

Associate with Message Types

Click one of the Edit buttons to open a new dialogue to enter one or more Message Types. The include option by name is new with Nodinite version 7 New 7.x.

Edit buttons to associate Stylesheets with Message Types
Example of Edit buttons to associate Stylesheets with Message Types.

Associate Stylesheet with one ore more Message Types
Example of associating Stylesheets with Message Types.

Tip

Multiple Message Types can be associated with the same Stylesheet.

Preview Setup

Click the Preview Setup button to select content:

Preview setup
Example of the Preview Setup button location.

There are 3 different options available:

  1. Raw - Paste or enter sample content directly
  2. File - Upload a sample file containing test data
  3. MessageId - Use an actual message from the Log Database

Input options
Example of the three input options available for preview.

Raw

Insert message data to use for the preview.

Preview Raw
Example of pasting raw XML content for preview.

File

Select a file through browsing or drag and drop it within the field.

Preview File
Example of the file upload interface for preview input.

Message Id

Select a Log Database, an Event Id, and Message Data.

Preview Event Id
Example of selecting a logged message by Event Id from the Log Database.

Preview

Click the Preview button to view the resulting output based on the selected input and the Stylesheet.

Sample output
Here's an example of an order in XML format outputted as HTML using an XSLT Stylesheet.


Next Step

How to Add or manage Log Views

Message Types
Stylesheets
Log Views
Alarm Plugins