SXMonitorDocs

Log Formats

Tell SXMonitor how to read each kind of log — the built-in formats, and your own formats mapped to the normalised schema with help from the assistant.

A log format tells SXMonitor how to read one kind of log. Every entry is turned into a normalised event in OCSF, the Open Cybersecurity Schema Framework, so that detection rules, Search Data and alerts can work with any source the same way.

SXMonitor comes with built-in formats for the systems and services it knows. For the logs of your own applications you create a format yourself: paste a few sample events, map their fields to OCSF, test the mapping and activate it.

To open the page, go to Protect › Data Sources › Log Formats. It has two tabs: Your formats and Built-in.

The Log Formats page on the Your formats tab with no formats yet: the search box, Refresh, an empty table with the Name, Event type, Used by, Status and Last updated columns, and New Log Format buttons

Your formats

The formats your tenant created. Search by name, and click a name to open the format's page.

ColumnWhat it shows
NameThe format's name, as it shows on log sources and in alerts.
Event typeThe OCSF class the events are stored as, and how the entries are written: JSON, key=value, CEF, LEEF, Syslog or Text pattern.
Used byHow many log sources are read with it, or Not used.
StatusActive, or Turned off.
Last updatedWhen the format last changed.

Built-in formats

The Built-in tab lists the log types SXMonitor reads without any setup, grouped by category. Search by product or vendor, such as FortiGate or Ubuntu, or pick a Category. Types marked Coming soon can't be connected yet.

The Built-in tab: a search box and the Category filter, and a table grouped into Servers and endpoints and Network and web, listing Linux, Windows, macOS (Coming soon), Network and Apache with how each connects and whether it is in use

ColumnWhat it shows
NameThe log type and what its logs record.
Connects viaHow the logs reach SXMonitor: Install command, Syslog relay, Amazon S3, Webhook, Forwarder or Vendor export.
In useHow many log sources send this type and how many of them are active, or Not used.

Click a row to open the log type's page: what it records, how to connect it step by step, what you need before you start, and the log sources that use it. The Connect button (Connect Nginx on the Nginx page) opens Add Log Source with the assistant, ready to connect that log type.

The Nginx page: Built-in tag, Read automatically, Searchable in Search Data and Detection rules apply; Connects via Install command, Works with Nginx on Linux servers, In use 1 log source; the How to connect steps; What it records; Before you start; and Log sources using Nginx with demo_web_app; and the Connect Nginx button

Create a log format

Click New Log Format. The wizard has three steps: Log Format & Samples, OCSF Mapping and Validate. Save Draft keeps your work at any point as a format that is turned off.

Step 1: Log Format & Samples

  1. Under About This Log, enter the Log name and pick one or more Log tags, or add your own. Tags suggest an OCSF category for step 2. Vendor, Product and version and the description are optional.
  2. Under Sample Events, paste a few real events, click Upload a File (.json, .ndjson, .log or .txt, up to 512 KB), or click Use Example Events. Three to twenty events that differ work best — include different outcomes, such as allowed, denied and timed out.
  3. SXMonitor detects how the events are written (JSON, key=value, CEF, LEEF or syslog), and the Parse Result shows how many events and fields it found.
  4. Click Continue to OCSF Mapping.

Step 1 of New Log Format for Demo JSON: the Log name, the iam and app tags, Vendor Demo and Product Demo App 1.0, next to the Log Format Card and the Parse Result with 4 events and 5 fields

Step 2: OCSF Mapping

  1. Choose the OCSF category and the OCSF class your events record — for sign-in events, Identity & Access Management and Authentication. Not sure? Use Map With AI.
  2. Give every field from the sample a destination in the Your Fields view: an OCSF attribute, unmapped{ } (kept and searchable, but not checked against OCSF), or Drop at ingest — not stored. The list offers the attributes whose type fits, best matches first.
  3. For a field with a few fixed values, such as login and logout, set what each value means — for example 1 · Logon and 2 · Logoff.
  4. The tiles at the top count what is placed; events stay invalid until every required attribute is met. The live preview beside the mapping shows the normalised event for each sample event and whether it is valid.
  5. Click Validate.

Step 2: the Source fields placed 5/5, Required met 10/10, Recommended filled 4/18 and Optional in use tiles; the Source Fields table mapping time, user, src_ip and action to OCSF attributes; and the live preview of a valid Authentication event

You can also edit the same mapping from the OCSF Attributes side or as JSON; a change in one view shows in the others.

Step 3: Validate

SXMonitor tests the mapping on your sample events with the same checks as ingest, and shows how many are valid, degraded (stored, but flagged) or invalid, with the OCSF Validator results and the Normalised Event. Nothing is stored by the test.

Step 3: Test Complete with 100% valid, 4 sample events tested, the OCSF Validator checks passing, and the normalised Authentication event

Click Activate (the button names the format and your tenant) to put it to use, or Keep as Draft. If every tested event is invalid, go back and finish the mapping first.

Map fields with the assistant

Map With AI (Beta) suggests the OCSF class and maps the fields for you. Nothing on your mapping changes until you click Apply.

  1. In step 2, click Map With AI, or Not Sure Which Class? Ask AI.

  2. The assistant reads your sample events and suggests the classes that fit, best first, with a match score, its reasons and how many fields standard rules can place. Pick one, or search Other classes, and click Map Fields.

    The Map With AI panel: the conversation on the left, and Choose a Class with AI suggestions Authentication 3002 (97% match), API Activity 6003 and User Management 3007, each with its reason, and the Map Fields button

  3. Review the destination it chose for each field, and anything marked as needing your input. Ask in the chat to change something — for example, to set a value for every event — or to explain a choice.

  4. Click Apply. A banner on the mapping says what was applied; Undo takes it back.

    The Fields step of Map With AI for Authentication: time, user, src_ip, action and result each mapped to an OCSF attribute, 2 items need your input, and the Apply button

AI can make mistakes: review the mapping before you apply it. The conversation is kept — History reopens it, and New session starts again.

A format's page

Click a format's name to open its page. The ⋮ menu at the top right offers Rename, Turn off (or Turn on) and Delete.

The Field mapping of the Demo JSON format: each field with its meaning, such as time as Event time, user as User email and User name, src_ip as Source IP address and action as Activity and result, plus the values set for all entries, such as Application name and Severity

SectionWhat it does
Field mappingEach field, an example value from recent entries and its meaning. Change a meaning and click Save changes; the change applies to every log source that uses the format.
New details in recent entriesAppears when recent entries hold values or fields the format does not cover yet. Pick a meaning for each and add them.
Test a log linePaste a log line and click Test to see how the format reads it.
Log sources using this formatThe sources read with it and whether each is monitored.

Turn off stops SXMonitor reading the logs of every source that uses the format until you turn it on again. Delete cannot be undone; the sources that used it are not read until you identify their fields again.

Logs SXMonitor does not recognise

A log source of the Other log type is read with one of your formats. Until it has one, the Log Sources list shows Not recognized in its LOG TYPE column, with an Identify fields button, and a note above the list counts the sources that are waiting.

Click Identify fields to open New Log Format with the newest events from that source already in the sample box. When you activate the format, the source is read with it from then on.

Next

Connect the source in Log Sources, then check the detection rules that apply to its events.