NetSight Setup Guide — Part 15: Correlation rules

· The NetSight Team · 3 min read

This is Part 15. In Part 14 we built alerts that fire on a condition — a keyword, a count, a spike. Correlation is the next level up. Instead of reacting to one log line, it looks at many related events grouped by an entity — a source IP, a username — and asks "is this pattern suspicious?" That's how you catch things a single alert misses: not "one failed login," but "one IP failing thirty logins across ten accounts in two minutes."

Open Correlation from the left menu, then New rule.

The idea: group, then measure

Every correlation rule does three things:

  1. Filter the events it cares about (for example, only authentication events, or only firewall denies).
  2. Group them by an entity — usually source IP or username.
  3. Measure each group over a time window and fire when it crosses a threshold. The measure is either a plain count of events, or a count of distinct values of another field (like "how many different destinations did this one IP touch?").

That last distinction is the powerful part. Counting distinct destinations per source is exactly how you spot a port scan; counting distinct source IPs per user is how you spot impossible travel.

The built-in techniques

You don't have to invent these from scratch. NetSight ships with ready-made technique templates — pick one and it fills in a sensible definition you can tweak:

  • Brute Force — many failed logins from a single source (5 in 5 minutes).
  • Port Scan — one source touching many distinct destinations fast (15 in 2 minutes).
  • Impossible Travel — one user authenticating from 2+ source IPs within minutes.
  • VPN Anomalies — the same VPN user connecting from multiple source IPs.
  • Malware Detected — events indicating malware/threat activity.
  • DNS Tunneling — abnormally high DNS activity from one source.
  • Lateral Movement — a source reaching many internal hosts over a longer window.
  • Privilege Escalation — privilege-related events (sudo, account changes) for a user.
  • Firewall Attacks — many denied/dropped connections from one source.

Each template comes with a suggested severity and description, so the critical ones (brute force, impossible travel, lateral movement) stand out from the warnings.

Building or tweaking a rule

In the New rule dialog:

  1. Give it a Name (the template's label is filled in for you).
  2. Choose a Technique — this loads the template's definition.
  3. Set a Severity.
  4. Edit the Definition. You can do this two ways with a toggle:
    • Visual — dropdowns and boxes for group-by, metric (count/distinct), distinct field, threshold, and window.
    • JSON — the raw definition, for when you want full control or want to copy a rule between systems.

Adjust the threshold and window to fit your environment. A number that's right for a quiet clinic network will be too sensitive for a busy one — the templates are a starting point, not gospel.

Test before you trust — the killer feature

Before saving, click Test rule. NetSight runs the definition against your recent real logs and shows you which groups would have fired and their counts — for example 10.0.0.9 ×7, 10.0.0.4 ×6. This is the single most useful habit with correlation:

  • If the test lights up dozens of groups, your threshold is too low — you'd drown in false positives. Raise it.
  • If it shows nothing during a period you know had activity, your filter or window is off. Loosen it.

Tuning against real data in the test panel takes a minute and saves you from either alert fatigue or silent blind spots.

How it relates to alerts

Correlation rules feed the same incident and notification pipeline as Part 14 — when one fires, it becomes an incident and can message your channels. Think of it as a smarter class of detector sitting alongside your simpler alerts: use plain alerts for "this exact thing happened," and correlation for "this pattern of things happened."

A sensible starter set

For most sites, enabling Brute Force, Impossible Travel, Port Scan, Malware, and Firewall Attacks — each tested and tuned to your traffic — gives strong coverage of the most common attack shapes without much noise. Add Lateral Movement and Privilege Escalation once you're confident your log sources feed the right fields.

Next up — Part 16: Reports & scheduled delivery, where we turn all this monitoring and detection into shareable PDF/Excel reports — generated on demand or emailed to stakeholders on a schedule.

(This continues from Part 14: Alerts & notifications.)

More articles

← All articles