◷ Reading Time: 9 minutes
Using the EventsGateway node, FlexRule Server captures key runtime events across all connected nodes so you can monitor system activity, troubleshoot issues, and audit execution behavior. Within the Events section, you can configure Traces to monitor a curated set of events and route them to multiple export destinations; Gateways node, operating system logs, or an MSSQL database.
Traces
The Traces page will show all available Traces, with details such as each trace’s name, description, channel type, and status.

For an existing Trace, users can:
Toggle Active Status
If inactive, the Trace will not capture any set events.

View/Update
View or update the details or other properties of an existing Trace.

Delete a Trace

Create a New Trace
To create a new Trace, users can start by pressing the highlighted button at the top-left of the page. The following fields are mandatory for creating a new Trace:
- Trace Name (cannot be changed once created)
- Channel Type Fields (Events Gateway or MSSQL Database)
- Events: The desired events to be captured at runtime.

General
The general properties of a Trace are used to give an identifier to the Trace and a short, relevant description.
- Name: The name of a new Trace cannot match any existing one. The name cannot be updated once created.
- Description: A field to give a description of the Trace.
Channel Type
The location and method for storing any captured events and the resulting log are configured here. The required fields and log view differ across distribution types, but the information captured is the same.
Event Distribution:
- OS Events – No additional required fields, saving the logs to Operating System Events.

- MSSQL Database – Requires Log table; the name of the targeted Database table.
An optional field for Connection string if the desired Database is different from the Database used for FlexRule Server.


- Events Gateway – Requires Gateway Node Address; to connect to the node.
Topic Name and Version are both required; but the Topic Namespace is optional; all of these values will be used to uniquely identify which Topic the captured events are published to.


Events
This section is where the events that should be captured by this trace are chosen. Each event has a unique name and a description of what will be captured at runtime if selected.
- Trace Level: The level of information collected at runtime for the selected event can be changed to:
- Error – Only when errors are related to the event occur.
- Warning – When a non-critical, abnormal event occurs, the relevant data is captured at runtime.
- Information – Captures the data and information related to the event that occurred.
- Verbose – Captures all information of an event occurrence.
Topics
Topics are required for Traces distributed to the Events Gateway node. Any Traces which share the same Topic Namespace (if given), Topic Name and Version will record all events to that Topic.

Register New Topic
To Register a new Topic, a Namespace can be give. With Name and Version of the Topic being required. The combination of the 3 values must be unique to other Topics.

Archive Topic
To retire a Topic and stop recording any events captured by Traces registered to a Topic without deleting the recorded events.

Publish Events
Here, it is possible to test that Traces and Topics are working by generating an Event.

Views
Views are registered with the purpose of viewing the recorded events in Topics. Views allows users a way to query, filter, sort and analyze through all recorded events.

Register New View
To register a View, there must be an existing Topic and Workspace to store the synced records. A unique name with no spaces, numbers or symbols are also required when registering. This cannot be changed later.
Optional parameters are Custom Fields; allowing users to give custom columns and a path to find/calculate the value for the custom column.

Sync Down
Syncing down will update the view with the latest recorded events. This is always manually done, with the time it was last synced logged.


Query View
Users are able to use Live Context expressions to query the View to better analyze or sort through the recorded events.

Delete a View
Deleting a View will remove it from Workbench, but the synced events will be kept in DAM. The Delete and Purge option will also remove any synced data from DAM.


Edit Existing View
Users are able to update a View’s Workspace, or add and remove all Custom Fields.
However, once created, a View cannot change its Name or Topic.

