{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":31299,"path":"it-operations-management/service-mapping/add-cis-connection-rules-multiple.md","title":"Add CIs to application services using connection rules","bundle":null,"doc_type":null,"release":"australia","body":"\n# Add CIs to application services using connection rules\n\nCreate rules for automatically adding traffic-based connections and the CIs they lead to in discovered service instances. Create rules that add CIs to multiple application services.\n\n## Before you begin\n\n-   Analyze the infrastructure you are mapping to identify the most common connections. These common connections are good candidates for connection rules.\n-   [Discover applications based on fingerprints](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/discover-application-based-process.md).\n-   Confirm that discovery based on Predictive Intelligence is enabled. Navigate to the System Property \\[sys\\_properties\\] table and verify that the **sa\\_ml.connection\\_suggestions.active** property is set to **True**.\n\nRole required: service\\_mapping\\_admin\n\n## About this task\n\nConnection rules enhance the connection suggestions generated using Predictive Intelligence. Each rule contains a condition that describes an aspect of a traffic-based connection. The fields available in conditions come from the Connection Suggestion \\[sa\\_ml\\_connection\\_suggestion\\] table, which is only populated when you run top-down discovery. You can base your rules directly on the connection suggestions. For example, create a rule for any connection with confidence level High. Alternatively, if you know which CIs must be part of the service instances, you can choose fields that point at these CIs.\n\nFor information about Service Mapping evaluating and applying connection rules, see [Traffic-based discovery in Service Mapping](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/traffic-based-discovery.md).\n\nIn addition to connection rules that add CIs to multiple services, you can [create rules for adding CIs to specific application services](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/add-cis-connection-rules-single.md).\n\n## Procedure\n\n1.  Navigate to **Service Mapping** &gt; **Administration** &gt; **Connection Rules**.\n\n    Alternatively, from a service application map, select **Suggestions** &gt; **Global Rules**.\n\n2.  Create a new connection rule by clicking **New**.\n\n    Alternatively, customize an existing rule by clicking the rule name in the list.\n\n    The Connection Rule form opens.\n\n3.  Select **Active** to start using this connection rule.\n\n    Service Mapping evaluates only active connection rules.\n\n4.  Enter a unique and meaningful name in the **Name** field.\n\n5.  Enter the value that Service Mapping uses for the sequence in the **Order** field.\n\n6.  Configure the filter condition in the **Condition** area.\n\n    1.  Select the field, operator, and the value.\n\n        For example, to add outgoing connections for any Tomcat server, configure the following filtering condition.\n\n        \\[Omitted image \"connection-rule-condition-example.png\"\\] Alt text: Filtering condition for Tomcat\n\n    2.  To create an additional filtering condition, click **Add Filter Condition**.\n\n    3.  To create an additional filtering condition using the OR operator, click **Add \"OR\" Clause**.\n\n7.  Select `Global` from the **Scope** list.\n\n8.  Specify services to which this connection rule doesn't apply.\n\n    1.  Click **New** in the **Excluded Services** area.\n\n        The Excluded Service form opens.\n\n    2.  Select the relevant service from the **Discovered Application Service** list.\n\n    3.  Click **Submit**.\n\n9.  Click **Update**.\n\n\n## What to do next\n\nVerify that Service Mapping added CIs as expected by performing the following steps:\n\n1.  After the scheduled jobs rediscover the application services, open the maps of the application services where you expected Service Mapping to add CIs.\n2.  Check that CIs are added correctly based on the connection rules.\n\n**Parent Topic:**[Map multiple application services suggested by classic Service Mapping](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/map-business-services-in-bulk.md)\n\n**Related topics**  \n\n\n[Discovery based on Predictive Intelligence](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/service-mapping/predictive-intelligence-discovery.md)\n\n"}}