Through an addition to the cb.conf file, an Exclusions section can be added to the Create Group or Edit Group panel on the Sensors page. This Exclusions section lets you define paths to executables to customize event collection from those executables to improve performance or eliminate unnecessary data.
For example, you can specify that execution of one set of applications do not collect network connections or non-binary file writes. You can create another exclusion for a different set of applications that collects everything except cross-process events.
For Windows, be careful when adding multiple paths per exclusion. Syntax errors in one path can cause others that follow that path to not be recognized.
The Xcode application (which is known to generate a lot of events) can be excluded by adding the path /Applications/Xcode.app/Contents/MacOS/Xcode.
Add Exclusion Settings to the Sensor Group Panel
Follow this procedure to add Exclusion settings to the Sensor Group panel.
- On the Carbon Black EDR server, open /etc/cb/cb.conf for editing.
- Add the following setting and value to the cb.conf file; consider including a comment to remind you of the purpose of the setting (and its current limitation to macOS):
- Save the cb.conf file.
- You must stop and restart the server or cluster to make the new setting effective:
- For a standalone server:
sudo service cb-enterprise restart
- For clusters:
sudo cbcluster stop
(...wait for all the nodes to shut down, and then...)
sudo cbcluster start
- For a standalone server:
You can specify exclusions when you create a sensor group, or add them to an existing sensor group. The following procedure assumes that the sensor group already exists.
Before you can perform this procedure, you must add Exclusion Settings to the Sensor Group panel. See Add Exclusion Settings to the Sensor Group Panel.
- On the left navigation bar, click Sensors.
- In the Groups panel of the Sensors page, click the gear icon () next to the sensor group for which to create exclusions.
- Click the Exclusions bar and click the Add Exclusion button.
The Exclusion configuration fields are exposed.
- Enter the path(s) to affect with this exclusion in the textbox in the upper right corner of the panel. Put each path on a new line.
- Check the box next to each type of information to not collect for the specified paths. Click Ok .
The exclusions are saved and displayed in the panel. You can edit or delete any exclusion.
- When you have finished creating exclusions, click the Save Group button.
You can use the wildcard * in exclusion paths. The exclusions will apply to all executables under the wildcard path.
Be careful when using wildcards: having too many wildcards can affect performance.