TELESPHERA

Write your own event rules

The built-in detections know scans and floods. Your own rules know your network: the backup that must stay below 500 MB, the RDP that should never come from abroad.

FlowSphera 2.10, demo dataUpdated 18 November 2026

FlowSphera's built-in detections look for what is suspicious on any network. Your own rules watch what matters on yours: a rule is the same filters you type in the search box and a threshold — FlowSphera checks it every 10 minutes and makes an event when it is crossed.

Settings → Events: your own rules — filters, measure, threshold, minutes, per host, priority and the Check now result

1. Add a rule

Open Settings → Events → Detections and press + Add a rule under Your own rules. Or set the filters on any page first and press + From the current filters.

  • Name — what the event will be called, e.g. NAS sends too much to the Internet.
  • What — filters as in the search box: ip:10.20.0.10, net:Office, service:RDP, port:3389, country:RU, device:edge-fw, asn:13335, dir:up; a minus leaves out: -country:UA. Empty means all traffic.
  • Traffic — Internet, Internal or All traffic, as at the top of every page.
  • Measure — traffic in MB, flows (records) or outside addresses (how many different ones).
  • Above and Within the last — the threshold and the time it is counted over: 10 minutes to 24 hours.
  • Counted — all together (one event for everything the filters match) or for each inside host (one event per host above the threshold — the way to catch the one machine among hundreds).
  • Priority — info, warning or critical; the notification channels send from the priority you set for them.

2. Check it before you save

Check now counts the rule over its last minutes and says what it measures and whether it is above the threshold — for a per-host rule, the busiest hosts. A typo in a filter is shown at once. Then Save.

3. When it fires

Every 10 minutes FlowSphera counts each rule over its time; above the threshold it makes an event with the rule's name and priority — 10.20.0.51: 412 addresses in 10 min (the rule: above 300 addresses). While the rule stays above, the same event grows instead of a new one every 10 minutes. New events go to Telegram and e-mail, webhooks and SIEM like the built-in ones.

Click the event on the Events page: it shows the rule's filters, the host and when — Show the flows opens the records behind it.

An own-rule event opened: the rule's filters, the host, when, Show the flows

Examples

RuleWhatMeasureAboveWithinCounted
Backup goes too farip:10.20.0.10 dir:upTraffic, MB5001 hourall together
Remote desktop from abroadservice:RDP -country:UAFlows2030 minall together
A host calls too many places(empty)Outside addresses30010 minfor each inside host
A guest network downloads a lotnet:Guests dir:downTraffic, MB50001 hourfor each inside host

The switch Your own rules in the detections table turns all of them off at once; Ignore on an event leaves that host out of every rule.

Next: read and act on security events.

Questions

How many rules can I have?

Up to 50. Each is counted from the same tables the pages read, so even a rule over 24 hours is quick.

Does a rule see the past?

It starts with the next 10-minute check. Check now shows what it would measure at this moment.

Can scripts manage the rules?

Yes: they are the custom list of /api/events/config, and POST /api/events/custom/test checks one.