Add or manage Stylesheet
In self-service enabled Log Views, transform your logged message into user-friendly formats.
A Stylesheet is associated with one or more Message Types to render user-friendly looking for logged messages (Log Events) and alert notifications like an e-mail sent out by the Alarm Plugins.
Add Stylesheet
Click the 'Add stylesheet' button to create a new Stylesheet for use with selected Message Types.
- A Name is required to create the Stylesheet.
- Adding a Description is optional.
Enter the mandatory name and optional description for your Stylesheet.
Next, select the type of stylesheet, currently, the following two formats are supported:
-
- XSLT
-
- Liquid
Select the type of Stylesheet to use.
1. 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.
2. Liquid
If the message body is JSON you can use Liquid instead of an XSLT to produce your output.
Associate with Message Types
Click the Edit button to open a new dialogue to enter one or more Message Types.
Manage Message Types
Associate Stylesheet with one or more Message Types
Preview Setup
Click the Preview Setup button to select content:
There are 3 different options available:
-
- Raw
-
- File
-
- MessageId
1. Raw
Insert message data to use for the preview.
2. File
Select a File through browsing or drag and drop it within the field.
3. Message Id
Select a Log Database, an Event Id and Message Data.
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