Correlation rules settings

This feature is part of the Observability Graph. See pricing.

Use correlation rules to map your object relationships across data sources, to create a full connected map of your environment.

The following setting are used when creating correlation rules on the Settings > Correlation page.

Tabs

Correlation rules are split across the following three tabs, grouped by where the rule came from:

  • Custom Rules: Rules created by your organization. These are the only rules you can edit and delete.
  • Data Source Rules: Rules that ship with a data source, grouped under one row for each data source instance. They are read-only, but you can re-evaluate them.
  • Catalog Rules: Rules from the SquaredUp catalog that suit the data sources in your organization. A suggested rule waits for you to accept or reject it. An accepted rule stays on this tab and runs like any other rule, and a rejected rule stays listed in gray so you can accept it later.

Rule status

Each rule reports the outcome of its most recent run. The tooltip gives the time of the run, the number of objects processed, and the number of relationships created.

Status
Meaning
Not Run
The rule is saved but has never been evaluated.
Running
The rule is being evaluated. The status updates on its own when the run ends.
Complete
The last run finished successfully.
Warning
The last run finished, but some objects could not be processed.
Error
The last run failed.
Disabled
A data source the rule points at is no longer connected, so the rule cannot run. The rule can still be edited.

Row actions

  • Re-evaluate rule: Runs the rule again immediately. Not available on a disabled rule or on a catalog rule you have not accepted.
  • Edit rule: Opens the rule in the builder. Available on your own rules, including disabled ones. Data source rules and catalog rules cannot be edited. Saving an edit runs the rule again, and relationships created by the previous version are cleared in the background rather than straight away.
  • Delete rule: Removes the rule. The relationships it created are cleared in the background rather than straight away. On a catalog rule, this rejects it instead, and it moves back to the list as rejected. Data source rules cannot be deleted.
  • Accept rule and Reject rule: Catalog rules only. Accept rule is offered on suggested and rejected rules and runs the rule straight away. Reject rule is offered on suggested rules.

Relationship step fields

Field
Description
Rule type
The rule type. One of Relate, Merge, Group or Bridge. Fixed once the rule is saved.
Data source
The data source an object end is restricted to, either a whole data source or one instance of it. Empty means the end matches objects from any data source.
Type
Required. The object types an end matches, up to 25. An end matches an object only if its type is in this list.
From ➜ To
Required for relate, group and bridge rules. The name of the relationship read from the From object to the To object, up to 128 characters. Merge rules use the reserved label "is" and cannot set this.
To ➜ From
The name of the relationship read in the other direction, up to 128 characters. Falls back to the forward label when empty.
Type (group)
Required for group rules. The type given to the objects the rule creates. Either an existing type or a new name.
Property (group)
Required for group rules. The property whose value objects are grouped by. One group object is created per distinct value.

A red outline on an object end means the data source it points at no longer exists. An icon resolves from the types selected rather than from the data source, so several contributing data sources show a generic icon and built-in SquaredUp types show the SquaredUp one.

Conditions step fields

Field
Description
Left-hand property
Required. The property read from the From object, labeled with the From object's type. In Basic mode it is a property name; in Custom mode it is an expression evaluated against the object, up to 512 characters.
Right-hand property
Required. The property read from the To object, labeled with the To object's type, in the same two modes.
Condition Logic
How multiple conditions combine, written by row number, such as 1 AND (2 OR 3). Appears once a rule has two or more conditions, up to 256 characters and five levels of nesting. Merge rules force AND of every condition; bridge rules have no such field.
Smart
Relate rules only. Replaces the conditions with a similarity threshold, matching on meaning rather than on equal values. Cannot be turned off once the rule is saved with it on.

Every condition compares with equals, shown as an equals sign between the two properties. Any normalizing has to happen in a Custom expression.

A bridge rule has three condition sets rather than one: From to Bridge and Bridge to To, both required, and an optional From to To set for conditions comparing the two ends directly. All three are combined with AND.

Smart matching levels

The similarity slider has four stops. Each sets how closely two objects have to correspond before a relate rule connects them.

Level
Behavior
Loose
Matches objects that are broadly similar. Expect unintended matches.
Moderate
A middle setting, for naming that is inconsistent but recognizable.
Strict
Matches only when two objects clearly describe the same thing.
Exact
Close to a literal match, with tolerance for formatting differences.

Preview behavior

The preview evaluates the rule against a sample of objects and writes nothing to the graph. It reports a limited number of matches, so it confirms that a rule works rather than showing everything it will do.

It samples up to 250 objects, stops after 10 seconds, and shows up to 20 relationships.

An empty preview has two meanings, and the dialog distinguishes them: either SquaredUp checked every candidate and found no match, or it stopped at the end of its sample. The second is not a verdict on the rule.

Limits

Limit
Value
Object types per end
25
Conditions per rule
25, and 25 per condition set on a bridge rule
Relationship label length
128 characters
Expression length
512 characters
Condition logic length
256 characters, nested up to five levels
Relationships per account
Set for your account. A run that reaches the limit stops early and says so in its status tooltip. Contact SquaredUp Support to raise it.

Permissions and availability

Correlation rules are part of the Observability Graph module. The Correlation settings page is available to administrators only.

Smart matching is enabled separately and draws on the organization’s AI token allowance. When that allowance runs out, the rule builder will not continue with a rule that uses it.

Troubleshooting

  • A rule shows Not Run: It has been saved but not evaluated yet. Click Re-evaluate rule.
  • A rule shows Warning: The run finished, but some objects could not be processed. Hover over the status to see how many relationships were created out of how many were found, then re-evaluate the rule.
  • A rule shows Error: The run failed. Re-evaluate the rule. If it fails again, check that the data sources it uses are still connected and importing, then contact SquaredUp Support.
  • A run stopped early: The status tooltip says the graph relationship limit was reached. Narrow the rule by selecting a data source or fewer types, or contact SquaredUp Support to raise the limit.
  • A rule shows Disabled: A data source it points at is no longer connected. Edit the rule to choose a replacement, reconnect the data source, or delete the rule.
  • The preview finds nothing: Check whether the dialog says every candidate was checked or that it stopped at the end of its sample. Only the first means the rule matched nothing. Check that the data sources have finished importing, and that the properties you compare hold values in the same format, switching the property to Custom if they do not.
  • A data source rule is missing: Data source rules are added when you connect the data source. Check the Data Source Rules tab, grouped by data source instance.
  • Two similar objects were not merged or related: Matching is on exact equality unless you use a Custom expression or smart matching. Compare the two values on the objects themselves.

Was this article helpful?


Have more questions or facing an issue?