Correlations overview

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

As you add more data sources, you'll often find the same object turning up in SquaredUp, sometimes under more than one name. This might be:

  • A server, indexed once by your cloud provider and once by your monitoring tool.
  • A customer, who is an account in your CRM and an organization in your helpdesk.
  • A release, tracked as a pipeline run in one place and a change request in another.

Correlation rules make sense of these shared objects. They're how you tell SquaredUp that two records describe one thing, and how you connect things that were never recorded as connected in the first place.

See Creating correlation rules for a detailed guide on how to build them.

What a correlation rule does

SquaredUp indexes objects from every data source you connect, but each data source only knows about its own. Nothing tells the platform that an account in one system and an organization in another are the same customer, or that a service belongs to the team on call for it.

A correlation rule closes that gap. It compares indexed objects, finds pairs whose property values match, and writes the result into the graph as a relationship, a merged identity, or a new grouping object.

Everything downstream benefits: an object’s perspective shows more, maps join up, and a tile scoped to one object can reach data from the other.

Where rules come from

There are three places that correlation rules come from, and you don't have to write all of them yourself:

  • Your own rules: Anything an administrator creates in Correlation rules settings.
  • Data source rules: Correlations that ship with a data source and switch on when you connect it. They are read-only, because the data source owns the definition.
  • Catalog rules: Correlations SquaredUp recommends for the data sources you have connected, listed on the Catalog Rules tab of Correlation rules settings. Accepting one turns it into an active rule, while rejecting it takes it off the list. Catalog rules are also offered while you connect a data source, so the obvious relationships can be turned on during setup.

The four rule types

Every rule is one of four types, and the type is fixed once the rule is saved. For the steps to build each one, see Creating correlation rules.

Type
What it creates
Reach for it when
Relate
A relationship between two objects, labeled in both directions.
Two objects are connected in real life but nothing in the data says so.
Merge
One shared identity, so both objects appear as a single object.
Two data sources have indexed the same thing twice.
Group
A new parent object, holding every object that shares a property value.
You want to treat a set of objects as one thing, such as everything tagged with the same team.
Bridge
A relationship between two objects that share nothing directly.
The link between them only exists in a third object, such as an assignment record.

Relate objects across sources

A relate rule draws a relationship between two objects and names it in each direction, so the graph reads correctly from either end.

A support ticket related to the customer who raised it might read raised by one way and raised the other. Both objects stay separate and keep their own properties.

Merge duplicate objects

A merge rule says two objects are the same thing. A customer held as an account in your CRM and as an organization in your helpdesk is one company recorded twice.

Matched objects share one identity and appear as a single object throughout the product, carrying the properties of both. The relationship is always the reserved label is, so there is nothing to name.

Group objects by property

A group rule creates objects that no data source indexed. Nominate a property, and every object sharing a value for it is attached to a new parent object named after that value.

Grouping applications by their business service property gives you one object per service, each holding its applications.

Bridge through a third object

Some objects belong together but share no property at all. A person and a project have nothing in common on paper; the only thing that knows they are connected is the assignment record between them.

A bridge rule matches each end against that third object, then relates the two ends to each other.

When to relate or merge

Merge is the harder one to undo, so it's important to get right.

Ask whether you are looking at one thing or two. A virtual machine in your cloud console and the host your monitoring agent reports on are one machine described twice, so merge them. A customer and the tickets they raise are different things with a relationship between them, so relate them.

When in doubt, relate. A relationship adds information without changing how existing objects behave, while a merge changes what an object is everywhere in the product.

How objects are matched

Most rules match on equality, meaning a property on one object has to hold exactly the same value as a property on the other. However, where values don't quite match up, you can use an expression to reshape one before the comparison.

For example, you can use an expression to make a fully qualified domain name match against a bare hostname, or a mixed-case email address against a lowercase email.

Smart matching

Relate rules can also be matched on meaning rather than on raw characters. Smart matching compares objects semantically and relates them when they are similar enough, which handles situations where no amount of shaping a name would work.

Note

Smart matching is enabled per rule, using the Smart toggle on the Conditions step when creating a correlation rule. It draws on your account’s AI token allowance.

Example correlation

Imagine that ServiceNow holds a server record for a machine in your CMDB, and that Azure indexes the same machine as a virtual machine. Each tool links its copy to its own objects: the server record to the business service it supports, and the VM to the app running on it.

Without correlating those objects, SquaredUp sees the two environments as disconnected islands, as nothing tells it the server and the VM are the same machine.

To fix this, you can create a merge rule on the machine’s name to tell SquaredUp that these two objects are the same. Even if the object names are different across your tools, you can use an expression to reshape them to match.

Once the rule runs, the server and the VM are seen as one object in the graph, and contain the properties of both. The two islands become a single environment, so you can follow a business service right down to the app running on the same machine.

When rules run

Rules are evaluated after an import, so objects indexed since the last run are picked up without anyone doing anything. Saving a rule runs it immediately, and any rule can be re-run by hand from the settings page.

A run works through the objects a rule’s types and data sources cover, which means a broad rule takes longer than a narrow one. Each rule reports its own status and the number of relationships it created, listed on the Correlation rules settings page.

Was this article helpful?


Have more questions or facing an issue?