SXMonitorDocs

Log Sources

Connect the systems that send their logs to SXMonitor — an AWS S3 bucket, a webhook, or any other source with the assistant.

Log Sources is where you connect the systems whose logs SXMonitor watches. Once a source is active, SXMonitor receives or pulls its logs, reads them with the matching log format, and makes the events available in Search Data and to your detection rules.

The page is one of three in the Data Sources group of the sidebar, next to Log Formats and EDR Integrations. To open it, go to Protect › Data Sources › Log Sources.

The Log Sources page: the search box, the Status and Managed by filters, Refresh and Add Log Source, and a table with one Webhook source, demo_web_app, that is Active, has 0 events, the Nginx log type and 1 assigned rule

The log source list

Search by name, or narrow the list with Status (All, Active, Pending, Error, Inactive) and Managed by (All, You, EDR integration). Click a source's name to open its details.

ColumnWhat it shows
NAMEThe name you gave the source. A source made by an EDR integration also says Managed by EDR and links to the integration.
TYPEAWS S3, Webhook, or EDR for a source made by an EDR integration.
STATUSPending until SXMonitor has verified a new source, then Active. Inactive means it was deactivated; Error means it can't be read.
EVENTHow many events the source has sent. It updates on its own as events arrive.
LOG TYPEThe kind of logs, such as Nginx or Windows. A source of type Other shows the log format it is read with, or Not recognized and an Identify fields button.
ASSIGN RULEHow many detection rules run on the source, or + Assign when none do. See Assign detection rules.
ACTIONThe ⋮ menu.

The ⋮ menu offers Generate Onboarding Script (see below), Activate or Deactivate, and Delete. Deactivating stops collecting new logs and keeps the data already received; you can activate the source again at any time. Delete asks you to type Delete to confirm; logs already ingested stay.

The ⋮ menu of the demo_web_app row open, offering Generate Onboarding Script, Deactivate and Delete

A source managed by an EDR integration can't be edited, paused or removed here. Change what the integration pulls on the integration's own page.

Add a log source

Click Add Log Source. The Select Type step offers three ways in:

OptionWhen to use it
AWS S3Your logs are written to an S3 bucket. SXMonitor pulls each new file.
WebhookThe system can push its logs as HTTP POST requests. SXMonitor gives it a URL and a credential.
Connect with AI (Beta)Any other source: describe it, and the assistant sets it up. See Connect with AI.

The cards under Upcoming Integrations can't be selected yet.

The Add Log Source dialog at the Select Type step: a search box, the AWS S3 and Webhook cards, the Connect with AI card with a Beta badge, and greyed-out upcoming integrations

For AWS S3 and Webhook, the dialog then goes through Configure and Complete.

AWS S3

Pick AWS S3 and click Continue. Pro Tips, Common Issues and the Setup Guide beside the form walk you through the bucket, the IAM user and the policy to attach to it.

The AWS S3 Configure step with the Name, Log Type, S3 Bucket Name, Ingestion Method, AWS Region, AWS Account ID, AWS Access Key ID, AWS Secret Access Key and KMS Key fields, between the Pro Tips and Common Issues panels and the Setup Guide with an IAM policy

FieldWhat to enter
NameA name to recognise the source by — it is what Search Data and alerts show.
Log TypeWhat the bucket holds, such as AWS CloudTrail.
S3 Bucket NameThe bucket the logs are written to.
Ingestion MethodEvent-driven (S3 notification): SXMonitor reads each new file when the bucket reports it.
AWS RegionThe bucket's region, picked from the list of AWS regions.
AWS Account IDThe 12-digit ID of the account that owns the bucket.
AWS Access Key ID, AWS Secret Access KeyAn access key of the IAM user that can read the bucket.
KMS KeyOptional. The key's ARN, if the files are encrypted with AWS KMS.

The AWS Region list open over the form, showing regions such as US East (N. Virginia) us-east-1, US West (Oregon) us-west-2 and Asia Pacific (Jakarta) ap-southeast-3

Click Save S3 Configuration.

Webhook

Pick Webhook and click Continue. Choose the Log Type, give the source a Name and pick an Authentication Type. API Specifications, Pro Tips and the Setup Guide beside the form tell the sender's owner what to send.

The Webhook Configure step with Log Type Nginx, the name demo_web_app, Authentication Type Bearer token, a masked auto-generated token with Generate Token and a copy button, the Enter my own token switch and the Create quick onboarding logs configuration script checkbox

For Bearer token, HMAC-SHA256 and Signature (raw hex), SXMonitor generates the token or secret for you: Generate Token (Generate Secret) makes a new one and the copy button copies it. To use a value you already have, switch on Enter my own token (Enter my own secret). Basic asks for a User Name and Password, and Public key (Ed25519) for the sender's public key.

The Authentication Type list open, grouped into Static credential — replayable with Bearer token (Recommended) and Basic, Signed payload — tamper-evident with HMAC-SHA256 and Signature (raw hex), and Asymmetric with Public key (Ed25519)

GroupTypesHow it works
Static credential — replayableBearer token (Recommended), BasicThe sender sends the same credential with every request.
Signed payload — tamper-evidentHMAC-SHA256, Signature (raw hex)The sender signs each request with a shared secret, so a changed request is caught.
AsymmetricPublic key (Ed25519)The sender signs with its private key and you paste its public key.

With Bearer token and the Linux, Windows, Apache or Nginx log type, you can tick Create quick onboarding logs configuration script to get an install command for the host in the next step; for Apache and Nginx, also pick the log path (see Generate an onboarding script). Then click Save Webhook Configuration.

Setup complete

The Complete step confirms the setup — Congratulations! Setup complete for a webhook, Configuration saved successfully! for AWS S3. The new source is Pending until SXMonitor has verified it, then Active. For a webhook, copy the Webhook URL and give it to the sender with the credential. If you ticked the script box, the Install command card holds a one-line command to run on the host; it counts down until it expires, and Regenerate makes a new one.

The Complete step: Congratulations! Setup complete, a note that the status changes from Pending to Active once verification is complete, the Webhook URL with a copy button, and the Install command card with a curl command and an Expires in countdown

Connect with AI

For any source that AWS S3 and Webhook cannot name — an app on your servers, a container cluster, a firewall, a SaaS service — the assistant works out how its logs should reach SXMonitor: an install command, collector files, a webhook or a bucket. Nothing is set up until you confirm.

  1. Click Add Log Source, pick Connect with AI and click Start with AI.

  2. Describe what you want to monitor in your own words, or start from one of the examples: Monitor an app, App on servers, Network device, Container cluster or Cloud service.

    The Connect step of Connect with AI: What do you want to monitor?, a message box with an example, the five example buttons, and Not sure what to write? Answer a few questions

  3. Answer the assistant's questions. Pick an option or type your own answer; Not sure? explains why it asks and how to find out, and I don't know lets it go on with an assumption it tells you. Not sure what to write at all? Click Answer a few questions to start with What do you want to connect?

    The question What do you want to connect? with five options: An app or service to monitor, Software on our machines, Containers or a cluster, A network or security device, and A cloud or SaaS service

  4. Review Your setup on the right: what will be installed or sent, the safety checks it passed, and the files it writes. Check the Name and Log type, then click Create log source. For a bucket you also enter the access key here; it goes to SXMonitor only, never to the assistant.

    The conversation for Container logs from a demo Kubernetes cluster next to Your setup: A Fluent Bit DaemonSet sends the container logs of every namespace, 3 safety checks passed, View the file, the Name and Log type fields and Create log source

  5. Follow the steps the assistant shows for your source: run the install command within the time it gives, apply the files, or paste the webhook URL and secret into the service. Copy instructions for someone else copies them for a colleague.

  6. The Verify step waits for the first events and lists the latest ones as they arrive. Click Done.

When you ask about a whole app — for example with Monitor an app — the assistant can first prepare a Monitoring plan: the Essential and Recommended sources to connect, which you then set up one by one.

SXMonitor does not keep a webhook secret the assistant made: it is shown again only in the same browser tab, so copy it right away. The conversation itself is kept: History reopens an earlier session, and New session starts another.

If SXMonitor does not recognise the new source's logs, the Verify step offers Identify fields to create a log format for them.

Source details

Click a source's name to see its details: Log Source Info (name, type, status, log type and index name) and the connection — for a webhook the Auth Type, the masked credential and the Webhook URL with a copy button, for AWS S3 the bucket, ingestion method, region, account IDs and SQS Queue. Secrets are never shown again after the source is created.

The detail dialog of demo_web_app: Log Source Info with Name, Type Webhook, Status Active, Log Type Nginx and Index Name; the Webhook section with Auth Type Bearer Token, a masked Token and the Webhook URL; the Generate Onboarding Script and Close buttons

Generate an onboarding script

For a Webhook source of the Linux, Windows, Apache or Nginx log type, SXMonitor can generate a command that installs a log collector (Fluent Bit) on the host, already set up to send to the source. The source must be Active and use Bearer Token; otherwise the button in the details is greyed out with the reason beside it, and the ⋮ menu does not offer it.

  1. Click Generate Onboarding Script in the source's details or its ⋮ menu.

  2. For Apache and Nginx, choose the Configuration Log Path: the default path (/var/log/apache2 or /var/log/nginx), a Custom path, or both. Windows sources read the standard Windows Event Log path (winevtlog).

    The Generate Script dialog for demo_web_app (Nginx) with Configuration Log Path: Default path at /var/log/nginx ticked, Custom path unticked, and Cancel and Generate buttons

  3. Click Generate. Install command ready shows the Webhook URL and the command. Run it on the host before the countdown runs out; once it expires, click Regenerate.

Assign detection rules

Detection rules whose log type matches are assigned to a source automatically (see Detection Rules). To add or remove rules for one source, click the number or + Assign in the ASSIGN RULE column.

The Assign Detection Rules dialog for demo_web_app: Log Source Info, the search box and the Rule Severity, Rule Source and Log Type filters, 1 of 472 Rules Selected with Select all 472 rules and Clear selection, and a table with the RULE NAME, LOG TYPE, SEVERITY, RULE SOURCE and SELECT columns

Tick the rules to run on the source and untick the ones to remove, then click Assign. Rules that are Deprecated or Failed are not listed. Assigning rules needs Editor on Detection Rules in your role.

Next

Check that events arrive in Search Data. For logs that SXMonitor does not recognise, create a log format.