Skip to main content

Code42 Incydr Source


The Code42 Incydr is an insider risk management solution that allows you to detect and respond to data exposure and exfiltration from corporate computer, cloud, and email systems. It provides the visibility, context, and controls needed to protect data without overwhelming security teams or inhibiting employee productivity.

Code42 Incydr source is used to analyze and fetch file events, alerts and audit logs from the Code42 Incydr API and send it to Sumo Logic.

Data Source

The integration fetches Alerts, File Events, and Audit Logs (Audit Events) using the Incydr API.

Set up and Configuration

The Code42 Incydr source requires you to provide the Base URL, Client ID, and Secret Key to access the source data.

  • The Base URL is used to retrieve the source data from the Incydr API. The domain used for making API requests can be determined using the domain you use to sign in to the Code42 console.

      Make sure that all API requests are made using HTTPs.

  • To generate the Client ID and Secret Key, follow the instructions mentioned in the Incydr API documentation.


Code42 Incydr source is a security platform that provides cloud-based security for data loss protection, backup, and recovery solutions. When you create an Code42 Incydr Source, it goes through the following stages:

  1. Pending. Once the Source is submitted, it is validated, stored, and placed in a Pending state.
  2. Started. A collection task is created on the Hosted Collector.
  3. Initialized. The task configuration is complete in Sumo Logic.
  4. Authenticated. The Source successfully authenticated with Code42 Incydr.
  5. Collecting. The Source is actively collecting data from Code42 Incydr.

If the Source has any issues during any one of these states, it is placed in an Error state.

When you delete the Source, it is placed in a Stopping state. When it has successfully stopped, it is deleted from your Hosted Collector. On the Collection page, the Health and Status for Sources is displayed. You can click the text in the Health column, such as Error, to open the issue in Health Events to investigate.

Create Code42 Incydr Source

When you create an Code42 Incydr source, you add it to a Hosted Collector. Before creating the source, identify the Hosted Collector you want to use or create a new Hosted Collector. For instructions, see Configure a Hosted Collector.

To configure a Code42 Incydr Source:

  1. In Sumo Logic, select Manage Data > Collection > Collection
  2. On the Collection page, click Add Source next to a Hosted Collector.
  3. Search for and select Code42 Incydr.
  4. Enter a Name for the source. The description is optional.
  5. (Optional) For Source Category, enter any string to tag the output collected from the Source. Category metadata is stored in a searchable field called _sourceCategory.
  6. (Optional) Fields. Click the +Add button to define the fields you want to associate. Each field needs a name (key) and value.
    • green check circle.png A green circle with a check mark is shown when the field exists in the Fields table schema.
    • orange exclamation point.png An orange triangle with an exclamation point is shown when the field doesn't exist in the Fields table schema. In this case, an option to automatically add the nonexistent fields to the Fields table schema is provided. If a field is sent to Sumo Logic that does not exist in the Fields schema it is ignored, known as dropped.
  7. In Base URL, select the domain from which you want to retrieve the source data from the Incydr API.
  8. In Client ID, enter the Client ID you generated from the Code42 Incydr platform.
  9. In Secret Key, enter the Secret Key you generated from the Code42 Incydr platform.
  10. In Data Collection, select the type of source from which you want to collect the data from. This allows you to limit the response to just the data you want.

Error Types

When Sumo Logic detects an issue it is tracked by Health Events. The following table shows the three possible error types, the reason for the error, if the source attempts to retry, and the name of the event log in the Health Event Index.

TypeReasonRetriesRetry BehaviorHealth Event Name
ThirdPartyConfigNormally due to an invalid configuration. You'll need to review your Source configuration and make an update.No retries are attempted until the Source is updated.Not applicableThirdPartyConfigError
ThirdPartyGenericNormally due to an error communicating with the third-party service APIs.YesThe Source will retry indefinitely.ThirdPartyGenericError
FirstPartyGenericNormally due to an error communicating with the internal Sumo Logic APIs.YesThe Source will retry indefinitely.FirstPartyGenericError

Restarting your Source

If your Source encounters ThirdPartyConfig errors, you can restart it from either the Sumo Logic UI or Sumo Logic API.


To restart your source in the Sumo Logic platform, follow the steps below:

  1. Open the Collection page, and go to Manage Data > Collection > Collection.
  2. Select the source and click the information icon on the right side of the row.
  3. The API usage information popup is displayed. Click the Restart Source button on the bottom left.
  4. Click Confirm to send the restart request.
  5. The bottom left of the platform will provide a notification informing you the request was successful.


To restart your source using the Sumo Management API, follow the instructions below:

  • Method: POST
  • Example endpoint:{collector_id}/sources/{source_id}/action/restart

Sumo Logic endpoints like are different in deployments outside us1. For example, an API endpoint in Europe would begin A service endpoint in us2 (Western U.S.) would begin For more information, see Sumo Logic Endpoints.

JSON Configuration

Sources can be configured using UTF-8 encoded JSON files with the Collector Management API. See JSON to configure Sources for details. 

configJSON ObjectYesContains the configuration-parameters of the Source.n/a
schemaRefJSON ObjectYesUse {"type":"Code42Incydr"} for Code42 Incydr Source.not modifiable
sourceTypeStringYesUse Universal for Code42 Incydr.not modifiable

Config parameters

nameStringYesType the desired name of the Source and it must be unique per Collector. This value is assigned to the metadata field _sourcemodifiable
descriptionStringNoType the description of the Source.modifiable
categoryStringNoType the category of the source. This value is assigned to the metadata field _sourceCategory.modifiable
fieldsJSON ObjectNoJSON map of key-value fields (metadata) to apply to the Collector or Source. Use the boolean field _siemForward to enable forwarding to SIEM.modifiable
baseURLStringYesAPI Key to used for Authorization.modifiable
clientIDBooleanNoClient ID generated from the Code42 Incydr platform.modifiable
secretKeyStringNoSecret Key generated secured from the Code42 Incydr platform.modifiable
dataCollectionStringNoType of source from which you want to collect the data from.modifiable

JSON example

"api.version": "v1",
"source": {
"config": {
"name": "Code42",
"description": "Code42",
"category": "code42",
"baseURL": "",
"clientID": "key-xxxx0316-xxxx-492d-xxxx-308184abxxx3",
"secretKey": "XXXXV%DsznXXX!hxr479cXsxxnbkX@vxxrxkbfxc",
"dataCollection": [
"schemaRef": {
"type": "Code42Incydr"
"sourceType": "Universal"


After configuring your source, you should check the status of the source in the Collectors page > Status column. If the source is not functioning as expected, you may see an error next to the Source Category column as shown below: 

Error Code401
Error Details:

"error": "invalid_client"

To resolve these errors:

  • Make sure the Base URL matches your domain.
  • Make sure correct Client ID or Secret Key is used to configure the source.
Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.