To fine-tune discovery patterns with traffic-based discovery, start with a relevant CI connection on a service map, locate its address or port in the CI configuration files, and create a parsing step in Pattern Designer. The revised pattern can then discover that connection from configuration data during subsequent discovery runs.
Choose a connection worth adding to the pattern
A traffic-discovered relationship is a lead for pattern development. It shows communication that pattern-based mapping may have missed, but communication alone does not establish that the destination belongs in an application service. Begin by identifying the dependency you want the pattern to reproduce and the CI type that uses the pattern.
The editing workflow requires the pd_admin role. Basic programming knowledge helps when reviewing generated variables and parsing logic. Before working through the screens, check the behavior on your instance and release, particularly whether discovery based on Predictive Intelligence is enabled. That setting changes how traffic connections are suggested and managed.
For a controlled change, record the source CI, destination address, port, process, and reason the connection matters. Treat this as a small test case: the desired outcome is a connection recovered through configuration parsing. Use that test case to decide whether the edit worked: identify the configuration entry it reads and compare the resulting relationship with the dependency you selected.
If you need context for editing and checking the pattern itself, use the guide to Pattern Designer authoring, versions, and validation. Keep this change focused on connection discovery so you can explain what the added step contributes.
Inspect the traffic connection before starting the edit
- Navigate to Service Mapping > Services > Application Services.
- Choose View Map beside the service instance you are investigating.
- Right-click the source CI and select Show traffic based connections.
- Review the candidate connection before opening it for pattern development.
When discovery based on Predictive Intelligence is disabled, the Traffic Based Connections List includes IP, Port, and Process. IP identifies the connected application’s address. Port describes the port on the selected CI used for communication, and Process identifies the process on that CI. Preserve the distinction between these fields when reviewing a configuration match.
Already on map shows Yes when the connection appears on the map. No means it is outside the service instance and absent from the map. Neither value tells you whether a configuration file contains enough information to build a parsing step. You still need to inspect the underlying file.
System decision determines whether Service Mapping retains or removes a discovered traffic connection. The optional User decision overrides it. For example, Remove can override a system decision of Keep. Treat those choices as map management decisions; changing one does not create the configuration parser you are trying to build.
Open the connection and search configuration files
Double-click the connection you selected. If multiple patterns discover the CI, select the pattern you intend to change and click OK. Pattern Designer creates a temporary connection section containing a new step. The Debug Connection Section window opens with some values already supplied.
Click Connect to activate Debug mode and open Search Assistant. Review the values under Free Text; they come from the traffic connection list. Do not assume that a populated search is already the right search. Compare the values with your recorded source CI and intended dependency before proceeding.
The File Patterns field identifies the file types included in the search. Open Search Files and review the files. Use the Minus icon to exclude irrelevant files where appropriate, then click Search. The results appear on Search Result after the search finishes.
A result means that a file contains at least one search criterion. It does not establish that the file describes the intended outbound connection. Read the surrounding configuration: a matching address could be a comment, an unrelated endpoint, or a value used for another purpose. As a review practice, write down why the selected entry represents the dependency rather than choosing the first match.
The related file-based discovery guide helps frame the broader work of extracting configuration data. Here, keep the search tied to the particular connection that traffic-based mapping exposed.
Create and review the generated parsing step
On Search Result, open a candidate file and wait for its content to load. Select the relevant entry beneath the file name, then click Create parse file step. Pattern Designer creates a step using the Parse File operation and names it using the format Parsing <file name>.
The generated step includes the file name, path, and parsing strategy. It also creates variables containing the values used in the search. Where a variable already contains the file path, Pattern Designer uses that variable for the path. Review the generated values together. Check both what the parser extracts and where it reads it, since the same endpoint format can appear in files with different purposes.
- Check that the chosen file is the configuration source you intended to parse.
- Compare extracted values with the connection selected on the service map.
- Inspect whether the parsing strategy selects the relevant entry without collecting unrelated entries.
- Review path variables against the CIs that should use this pattern.
You can modify the parsing strategy when necessary. Give the connection section a name that states its purpose, or copy and paste the step into the relevant connection section. A descriptive section name should identify the dependency being discovered; a section name based only on the search session typically makes later maintenance harder..
For help planning this work, see ServiceNow implementation.
Validate the change against the intended CI type
The purpose of modifying the pattern is to discover the relationship from configuration data when that pattern runs again. Validate that mechanism explicitly. Keep the original traffic evidence available for comparison, then check whether the revised pattern extracts the expected values from the selected CI’s configuration.
As a validation practice, include another representative CI of the same type where available. Compare file locations, endpoint formats, and optional configuration entries. This helps distinguish a reusable parsing rule from a step that happens to match one machine. If configurations differ, record the difference before widening the change.
Also inspect an example where the intended dependency is absent. A parser that extracts a nearby but unrelated endpoint can make a map look complete while adding the wrong relationship. Set your acceptance criteria around the source, destination, and meaning of the connection, rather than around whether the step returns any value.
Complete the remaining pattern work through the pattern finalization workflow. Keep the selected configuration entry, generated step, and validation outcome together in your change record. Those details let another pattern administrator understand why the connection was added and how it was checked.
Separate search failures from traffic discovery settings
If configuration search finds no relevant entry, you have not established a configuration-based route for that connection. Recheck the selected CI, search values, and included files before designing a parser.
If the expected traffic connection is missing, investigate traffic discovery separately. At product level, sa.traffic_based_discovery.active controls traffic-based discovery and is off by default. Product-level enablement is required before enabling it at more specific levels. Service instance settings can be overridden by CI type rules, while a specific CI rule takes precedence over the service instance and CI type settings.
Base systems use TCP data collected through netstat, ss, and lsof. Netflow and VPC log discovery require additional configuration. This distinction matters when deciding whether the expected evidence should exist at all.
Questions about connection evidence and map changes
Why can a connection remain visible on the map but disappear from the list?
A traffic connection can remain on the map while being absent from the Traffic Based Connections List when its record was removed from TCP Connection [cmdb_tcp] less than three days earlier. Account for that timing before treating the different views as a pattern defect.
What happens when both discovery methods find the same relationship?
Pattern-based discovery can recreate a relationship previously established through traffic-based discovery. To prevent duplication, the system removes the traffic-created connection when pattern-based discovery also creates it. Evaluate the resulting relationship and its discovery mechanism rather than expecting two connections to remain.
Does Service Mapping use all flow tables in a base system?
No. In a base system, Service Mapping does not use Flow Services IP/Port and Statistics [sa_flow_service] or Flow Server Communication [sa_flow_server_comm]. Flow Connector [sa_flow_connection] takes its data from Netflow and VPC logs, which need extra configuration. A base system relies solely on TCP data collected with netstat, ss and lsof.
Which property controls connection suggestions?
sa_ml.connection_suggestions.active controls the connection suggestions feature at product level. It is separate from the traffic discovery activation property. Record its current value when investigating why two environments present traffic evidence differently.