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.

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

Enter the mandatory name and optional description for your Stylesheet.
Next, select the type of stylesheet. Currently, the following two formats are supported:

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.

Example of Edit buttons to associate Stylesheets with 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:

Example of the Preview Setup button location.
There are 3 different options available:
- Raw - Paste or enter sample content directly
- File - Upload a sample file containing test data
- MessageId - Use an actual message from the Log Database

Example of the three input options available for preview.
Raw
Insert message data to use for the preview.

Example of pasting raw XML content for preview.
File
Select a file through browsing or drag and drop it within the field.

Example of the file upload interface for preview input.
Message Id
Select a Log Database, an Event Id, and Message Data.

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.

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