ServiceNow Source V2 Connector for Confluent Cloud¶
The fully-managed ServiceNow Source V2 connector for Confluent Cloud is used to poll data from the specified ServiceNow tables and get these changes into Apache Kafka® in real time. The connector supports Avro, JSON Schema, and Protobuf data output formats for Kafka topics. The connector consumes data from up to five ServiceNow tables to add records in Kafka topics.
If you require private networking for fully-managed connectors, make sure to set up the proper networking beforehand. For more information, see Manage Networking for Confluent Cloud Connectors.
Features¶
The ServiceNow Source V2 connector includes the following features:
Topics created automatically: The connector can automatically create Kafka topics.
Secure access and data exchange: The connector supports the following authentication mechanisms:
- Basic
- OAuth2 client credentials
API error reporting management: You can configure the connector to notify you when an API error occurs through email or the Confluent Cloud Console. You can also configure the connector to ignore when an API error occurs.
Supported data formats: The connector supports Avro, JSON Schema, and Protobuf data formats. Schema Registry must be enabled to use a Schema Registry-based format. For additional information, see Schema Registry Enabled Environments.
At least once delivery: The connector guarantees that records are delivered at least once to the Kafka topic.
Multiple tables support: The connector allows you to fetch records from up to five tables simultaneously. This is supported with multiple tasks also.
Elasticity: The connector allows you to configure two parameters that enforce the throughput limit:
table{{i}}.batch.size
andtable{{i}}.request.interval.ms
. The connector defaults to20000
records and a2000
milliseconds polling interval. If a large number of updates occur within the given interval, the connector will paginate records according to configurable batch size. Note that because ServiceNow provides precision to one second, the ServiceNow V2 connector sets2000
milliseconds as the lowesttable{{i}}.request.interval.ms
configuration property setting.Schema registry and schema context support: The connector allows you to map an API to a specific schema context so that you can use the schema context feature in different environments.
Custom offset support: The connector allows you to configure custom offsets using the Confluent Cloud Console to prevent data loss and data duplication.
Configurable retry functionality: The connector allows you to customize retry settings based on your requirements.
New configuration support: The connector supports the following new property configurations:
- Specify initial timestamps up to granularity of seconds.
- Specify
table{{i}}.pagination.query
(equivalent tosysparm_query
) to allow an encoded query to filter the result set. For pagination, use eithersys_updated_on
orsys_created_on
. - Specify
table{{i}}.display.value
(equivalent tosysparm_display_value
) to determine the type of data returned, either the actual values from the database or the display values of the fields. - Use
table{{i}}.allowlisted.fields
(equivalent tosysparm_fields
) to specify the desired list (comma-separated) of fields from the table record for ingestion in Kafka.
For more information about new properties, see ServiceNow Table API.
Client-side field level encryption (CSFLE) support: The connector supports CSFLE for sensitive data. For more information about CSFLE setup, see connector configuration.
For more information and examples to use with the Confluent Cloud API for Connect, see the Confluent Cloud API for Connect Usage Examples section.
Limitations¶
Be sure to review the following information:
- For connector limitations, see ServiceNow Source V2 Connector limitations.
- If you plan to use one or more Single Message Transforms (SMTs), see SMT Limitations.
- If you plan to use Confluent Cloud Schema Registry, see Schema Registry Enabled Environments.
Manage custom offsets¶
You can manage the offsets for this connector. Offsets provide information on the point in the system from which the connector is accessing data. For more information, see Manage Offsets for Fully-Managed Connectors in Confluent Cloud.
To manage offsets:
- Manage offsets using Confluent Cloud APIs. For more information, see Cluster API reference.
To get the current offset, make a GET
request that specifies the environment, Kafka cluster, and connector name.
GET /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/offsets
Host: https://api.confluent.cloud
Response:
Successful calls return HTTP 200
with a JSON payload that describes the offset.
{
"id": "lcc-example123",
"name": "{connector_name}",
"offsets": [
{
"partition": {
"url": "https://<servicenow-instance>.service-now.com/api/now/table/incident"
},
"offset": {
"offset": "2024-12-16 14:25:58",
"operator": "=",
"primary_key": "ee3fb4c9c3ea12100127x"
}
}
],
"metadata": {
"observed_at": "2024-03-28T17:57:48.139635200Z"
}
}
Responses include the following information:
- The position of the latest offset.
- The observed time of the offset in the metadata portion of the payload. The
observed_at
time indicates a snapshot in time for when the API retrieved the offset. A running connector continuously updates its offsets. Useobserved_at
to get a sense of the gap between real time and the time at which the request was made. By default, offsets are observed every minute. CallingGET
repeatedly will fetch more recently observed offsets. - Information about the connector.
To update the offset, make a POST
request that specifies the environment, Kafka cluster, and connector
name. Include a JSON payload that specifies new offset and a patch type.
POST /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/offsets/request
Host: https://api.confluent.cloud
{
"type": "PATCH",
"offsets": [
{
"partition": {
"url": "https://<servicenow-instance>.service-now.com/api/now/table/incident"
},
"offset": {
"offset": "2024-12-16 14:25:58",
"operator": ">=",
"primary_key": ""
}
}
]
}
Considerations:
- You can only make one offset change at a time for a given connector.
- This is an asynchronous request. To check the status of this request, you must use the check offset status API. For more information, see Get the status of an offset request tab.
- For source connectors, the connector attempts to read from the position defined by the requested offsets.
Response:
Successful calls return HTTP 202 Accepted
with a JSON payload that describes the offset.
{
"id": "lcc-example123",
"name": "{connector_name}",
"offsets": [
{
"partition": {
"url": "https://<servicenow-instance>.service-now.com/api/now/table/incident"
},
"offset": {
"offset": "2024-12-16 14:25:58",
"operator": ">=",
"primary_key": ""
}
}
]
"requested_at": "2024-03-28T17:58:45.606796307Z",
"type": "PATCH"
}
Responses include the following information:
- The requested position of the offsets in the source.
- The time of the request to update the offset.
- Information about the connector.
To delete the offset, make a POST
request that specifies the environment, Kafka cluster, and connector
name. Include a JSON payload that specifies the delete type.
POST /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/offsets/request
Host: https://api.confluent.cloud
{
"type": "DELETE"
}
Considerations:
- A delete request removes the offset for the specified partition and resets it to the base state. A delete request is as if you created a fresh new connector.
- This is an asynchronous request. To check the status of this request, you must use the check offset status API. For more information, see Get the status of an offset request tab.
- Do not issue delete and patch requests at the same time.
- For source connectors, the connector attempts to read from the position defined in the base state.
Response:
Successful calls return HTTP 202 Accepted
with a JSON payload that describes the result.
{
"id": "lcc-example123",
"name": "{connector_name}",
"offsets": [],
"requested_at": "2024-03-28T17:59:45.606796307Z",
"type": "DELETE"
}
Responses include the following information:
- Empty offsets.
- The time of the request to delete the offset.
- Information about Kafka cluster and connector.
- The type of request.
To get the status of a previous offset request, make a GET
request that specifies the environment, Kafka cluster, and connector
name.
GET /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/offsets/request/status
Host: https://api.confluent.cloud
Considerations:
- The status endpoint always shows the status of the most recent PATCH/DELETE operation.
Response:
Successful calls return HTTP 200
with a JSON payload that describes the result. The following is an example
of an applied patch.
{
"request": {
"id": "lcc-example123",
"name": "{connector_name}",
"offsets": [
{
"partition": {
"url": "https://<servicenow-instance>.service-now.com/api/now/table/incident"
},
"offset": {
"offset": "2024-12-16 14:25:58",
"operator": "=",
"primary_key": "ee3fb4c9c3ea12100127x"
}
}
],
"requested_at": "2024-03-28T17:58:45.606796307Z",
"type": "PATCH"
},
"status": {
"phase": "APPLIED",
"message": "The Connect framework-managed offsets for this connector have been altered successfully. However, if this connector manages offsets externally, they will need to be manually altered in the system that the connector uses."
},
"previous_offsets": [
{
"partition": {
"url": "https://<servicenow-instance>.service-now.com/api/now/table/incident"
},
"offset": {
"offset": "2024-12-15 14:25:58",
"operator": "=",
"primary_key": "abcbee3fb4c9c3ea12100127x"
}
}
],
"applied_at": "2024-03-28T17:58:48.079141883Z"
}
Responses include the following information:
- The original request, including the time it was made.
- The status of the request: applied, pending, or failed.
- The time the status request was issued.
- The previous offsets. These are the offsets that the connector last updated prior to updating the offsets. Use these to try to restore the state of your connector if a patch update causes your connector to fail or to return a connector to its previous state after rolling back.
JSON payload¶
The table below provides a description of the unique fields in the JSON payload for managing offsets of the ServiceNow Source V2 connector.
Field | Definition | Required/Optional |
---|---|---|
url |
Combination of the ServiceNow base URL and the table API path. | Required |
offset |
Timestamp (yyyy-MM-dd HH:mm:ss ) is used as the offset for all records. |
Required |
operator |
Always set to >= |
Required |
primary_key |
Always set as empty string - "" |
Required |
Quick Start¶
Use this quick start to get up and running with the ServiceNow Source V2 connector on Confluent Cloud connector.
Prerequisites¶
- Authorized access to a Confluent Cloud cluster on Amazon Web Services (AWS), Microsoft Azure (Azure), or Google Cloud).
- The Confluent CLI installed and configured for the cluster. For more information, see Install the Confluent CLI.
- Schema Registry must be enabled to use a Schema Registry-based format (for example, Avro, JSON_SR (JSON Schema), or Protobuf). For more information, see Schema Registry Enabled Environments.
- You must have the ServiceNow instance URL, table name, and connector authentication details. For more information, see ServiceNow User Administration documentation.
Using the Confluent Cloud Console¶
Step 1: Launch your Confluent Cloud cluster¶
See the Quick Start for Confluent Cloud for installation instructions.
Step 2: Add a connector¶
In the left navigation menu, click Connectors. If you already have connectors in your cluster, click + Add connector.
Step 4: Enter the connector details¶
Note
- Ensure you have all your prerequisites completed.
- An asterisk ( * ) designates a required entry.
At the Add ServiceNow Source V2 Connector screen, complete the following:
- Select the way you want to provide Kafka Cluster credentials. You can
choose one of the following options:
- My account: This setting allows your connector to globally access everything that you have access to. With a user account, the connector uses an API key and secret to access the Kafka cluster. This option is not recommended for production.
- Service account: This setting limits the access for your connector by using a service account. This option is recommended for production.
- Use an existing API key: This setting allows you to specify an API key and a secret pair. You can use an existing pair or create a new one. This method is not recommended for production environments.
- Click Continue.
- ServiceNow Instance URL: Enter your HTTP API based ServiceNow base URL.
For example:
https://<servicenow-instance>.service-now.com
. - Endpoint Authentication Type: Select one of the authentication options:
- BASIC: Enter a username and password for basic authentication.
- OAUTH2: Enter the following options when OAuth2 is selected:
- OAuth2 Token URL: The URL to be used for fetching the OAuth2 token in the field. Client Credentials is the only supported grant type.
- OAuth2 Client ID: The client ID used when fetching the OAuth2 token.
- OAuth2 Client Secret: The secret used when fetching the OAuth2 token.
- OAuth2 Token Property Name: The name of the property
containing the OAuth2 token returned by the OAuth2 token URL. Defaults to
access_token
. - OAuth2 Client Scope: The scope parameter sent when fetching the OAuth2 token.
- OAuth2 Client Mode: Specifies how to encode
client_id
andclient_secret
in the OAuth2 authorization request. If set toheader
, the credentials are encoded as anAuthorization: Basic <base-64 encoded client_id:client_secret>
HTTP header. If set tourl
, the credentials are sent as URL-encoded parameters. - OAuth2 Client Headers: HTTP headers that you can add in the OAuth2 client endpoint.
- OAuth2 Client Headers Separator: Individual HTTP headers must be separated by a
|
. - Add JWT token: Defaults to
false
. If you set this property to true, JWT token will be added as ajwt_token
request parameter.
- SSL Enabled: Defaults to
false
. If you set this property to true, you must upload the Key Store and/or Trust Store files. You must also supply the required passwords for each uploaded file. - Click Continue.
Output record value format: Select the Output Kafka record value format (data going to the Kafka topic): AVRO, JSON_SR, or PROTOBUF. Schema Registry must be enabled to use a Schema Registry-based format (for example, Avro, JSON Schema, or Protobuf). For more information, see Schema Registry Enabled Environments
Tables: Specify the number of tables to poll the data from. Note that this value should be less than or equal to 5.
Table - <i> Configuration: Configure the number of tables you set in the Tables field. For example, if you enter 2 in the Tables field, you should see 2 table configuration sections with the following fields to set. For more information about table properties and values, see Configuration Properties.
- Table: The table name, combined with the ServiceNow Instance URL, will form the complete HTTP(S) URL. This path can be templated to include offset information.
- Topic: Specify the topic to which data will be pushed for this table.
- Batch Size: Size of the batch of records to be fetched from the ServiceNow table. Note that Basic and Standard Clusters may experience throughput limitations, even with a higher batch size.
- Start Time in UTC (yyyy-MM-dd HH:mm:ss): UTC Time to start fetching all updates/creation.
Defaults to
1970-01-01 00:00:00
. - Timestamp Field: Specify timestamp field if you want to use pagination.
- Pagination Query: Defaults to a
timestamp-based
pagination query. If you configure this field, all other table-related configurations. This query can be templated with offset information - ${offset}. An example query isclosed_at>=${offset}^ORDERBYclosed_at
, where ${offset} refers to the pagination query offset field - closed_at. - Pagination Query Field: Offset field if pagination query is used.
- Display Values: Specify whether to display values for the ServiceNow table records.
- Allowlisted Fields: A comma-separated list of fields that should be included in the Kafka record.
The list must necessarily include the selected timestamp field (either
sys_updated_on
orsys_created_on
) and the sys_id field. It defaults to all fields from the response. - Request Interval ms: The time in milliseconds to wait between consecutive requests.
(Optional) Enable Client-Side Field Level Encryption for data encryption. Specify a Service Account to access the Schema Registry and associated encryption rules or keys with that schema. For more information on CSFLE setup, see Manage CSFLE for connectors.
Show advanced configurations
Schema context: Select a schema context to use for this connector, if using a schema-based data format. This property defaults to the Default context, which configures the connector to use the default schema set up for Schema Registry in your Confluent Cloud environment. A schema context allows you to use separate schemas (like schema sub-registries) tied to topics in different Kafka clusters that share the same Schema Registry environment. For example, if you select a non-default context, a Source connector uses only that schema context to register a schema and a Sink connector uses only that schema context to read from. For more information about setting up a schema context, see What are schema contexts and when should you use them?.
Behavior On Error
Behavior On Errors: Select the error handling behavior setting for handling error responses from HTTP requests. Valid options are
IGNORE
andFAIL
. This defaults toIGNORE
.
Retry Configurations
Retry Backoff Policy: The backoff policy to use in terms of a retry. Valid options are
CONSTANT_VALUE
OREXPONENTIAL_WITH_JITTER
.Retry Backoff (ms): The time in milliseconds to wait following an error before the connector retries the task.
Retry HTTP Status Codes: The HTTP response status codes returned that prompt the connector to retry the request. Enter a comma- separated list of codes or range of codes. Ranges are specified with a start and optional end code. Range boundaries are inclusive. For example:
400-
includes all codes greater than or equal to400
and400-500
includes codes from 400 to 500, including 500. Multiple ranges and single codes can be specified together to achieve fine-grained control over retry behavior. For example:404,408,500-
prompts the connector to retry on404 NOT FOUND
,408 REQUEST TIMEOUT
, and all5xx
error codes. Note that some status codes are always retried, such as unauthorized, timeouts, and too many requests.Maximum Retries: The maximum number of times the connector retries a request when an error occurs, before the task fails.
Schema Configuration
Value Subject Name Strategy: The method to construct the subject name used to register the value schema with the Schema Registry. valid values are
TopicNameStrategy
,RecordNameStrategy
, orTopicRecordNameStrategy
.
Transforms
Single Message Transforms: To add a new SMT, see Add transforms. For more information about unsupported SMTs, see Unsupported transformations.
For all property values and definitions, see Configuration Properties.
Click Continue.
Based on the number of topic partitions you select, you will be provided with a recommended number of tasks.
- To change the number of recommended tasks, enter the number of tasks for the connector to use in the Tasks field.
- Click Continue.
Verify the connection details.
Click Continue.
The status for the connector should go from Provisioning to Running.
Step 5: Check for records¶
Verify that records are being produced at the Kafka topic.
For more information and examples to use with the Confluent Cloud API for Connect, see the Confluent Cloud API for Connect Usage Examples section.
Using the Confluent CLI¶
To set up and run the connector using the Confluent CLI, complete the following steps, but ensure you have met all prerequisites.
Step 1: List the available connectors¶
Enter the following command to list available connectors:
confluent connect plugin list
Step 2: List the connector configuration properties¶
Enter the following command to show the connector configuration properties:
confluent connect plugin describe <connector-plugin-name>
The command output shows the required and optional configuration properties.
Step 3: Create the connector configuration file¶
Create a JSON file that contains the connector configuration properties. The following example shows the required connector properties.
{
"connector.class": "ServiceNowSourceV2",
"name": "ServiceNowSourceV2Connector_1",
"kafka.auth.mode": "KAFKA_API_KEY",
"kafka.api.key": "****************",
"kafka.api.secret": "************************************************",
"output.data.format": "JSON_SR",
"tasks.max": "1",
"servicenow.url": "https://instance.service-now.com",
"auth.type": "BASIC",
"connection.user": "admin",
"connection.password": "************",
"tables.num": "2",
"table1.name": "incident",
"table1.topic": "topic-1",
"table1.batch.size": "20000",
"table1.start.timestamp": "1970-01-01 00:00:00",
"table1.timestamp.field": "sys_updated_on",
"table1.display.value": "false",
"table1.request.interval.ms": "2000",
"table2.name": "perf_test",
"table2.topic": "topic-2",
"table2.batch.size": "20000",
"table2.start.timestamp": "1970-01-01 00:00:00",
"table2.timestamp.field": "sys_updated_on",
"table2.display.value": "false",
"table2.request.interval.ms": "2000"
}
Note the following property definitions:
"connector.class"
: Identifies the connector plugin name.- “
output.data.format"
: Enter an output data format (data going to the Kafka topic): AVRO, JSON_SR (JSON Schema), or PROTOBUF. Schema Registry must be enabled to use a Schema Registry-based format (for example, Avro, JSON_SR (JSON Schema), or Protobuf). See Schema Registry Enabled Environments for additional information.
"kafka.auth.mode"
: Identifies the connector authentication mode you want to use. There are two options:SERVICE_ACCOUNT
orKAFKA_API_KEY
(the default). To use an API key and secret, specify the configuration propertieskafka.api.key
andkafka.api.secret
, as shown in the example configuration (above). To use a service account, specify the Resource ID in the propertykafka.service.account.id=<service-account-resource-ID>
. To list the available service account resource IDs, use the following command:confluent iam service-account list
For example:
confluent iam service-account list Id | Resource ID | Name | Description +---------+-------------+-------------------+------------------- 123456 | sa-l1r23m | sa-1 | Service account 1 789101 | sa-l4d56p | sa-2 | Service account 2
"name"
: Sets a name for your new connector."table<i>.topic"
: Enter the topic name where data is sent."tasks.max"
: Enter the maximum number of tasks for the connector to use. More tasks might improve performance.Note
The maximum number of tasks should be less than or equal to the number of tables configured.
"tables.num"
: Specify the number of tables to poll the data from. Note that this value should be less than or equal to 5. Configure the number of tables you set in thetables.num
field. For example, if you entered 2 in thetables.num
field, you should set 2 table configurations as shown in the connector properties example above. For more information about table properties and values, see Configuration Properties.
Single Message Transforms: For details about adding SMTs using the CLI, see the Single Message Transforms (SMT) documentation. For all property values and descriptions, see Configuration Properties.
Step 4: Load the properties file and create the connector¶
To load the configuration and start the connector, run the following Confluent CLI command:
confluent connect cluster create --config-file <file-name>.json
For example:
confluent connect cluster create --config-file servicenow-source-v2-config.json
Example output:
Created connector ServiceNowSourceV2Connector_0 lcc-do6vzd
Step 5: Check the connector status.¶
To check the connector status, run the following Confluent CLI command:
confluent connect cluster list
Example output:
ID | Name | Status | Type | Trace |
+------------+--------------------------------------------+---------+------+-------+
lcc-do6vzd | ServiceNowSourceV2Connector_0 | RUNNING | sink | |
Step 6: Check for records¶
Verify that records are populating the endpoint.
For more information and examples to use with the Confluent Cloud API for Connect, see the Confluent Cloud API for Connect Usage Examples section.
Tip
When you launch a connector, a Dead Letter Queue topic is automatically created. See View Connector Dead Letter Queue Errors in Confluent Cloud for details.
Moving from V1 to V2¶
Use one of the following options to migrate to ServiceNow Source V2 connector. Implement and validate any connector changes in a pre-production environment before promoting to production.
Migration option 1¶
- Pause the ServiceNow Source V1 connector.
- Note the timestamp of the last sourced record.
- Create a ServiceNow Source V2 connector to fetch all records that were created or
updated from that specific point in time by configuring
table1.start.timestamp
andtable1.timestamp.field
(tosys_updated_on
) properties. - Verify the records and confirm that the V2 connector is running successfully with the fetched records.
- Delete the V1 connector.
Migration option 2¶
Pause the ServiceNow Source V1 connector.
Get the offset for the V1 connector.
Create a ServiceNow Source V2 connector using the offset from the previous step.
confluent connect cluster create [flags]
For example:
Create a configuration file with connector configs and offsets.
{ "name": "(connector-name)", "config": { ... // connector specific configuration }, "offsets": [ { "partition": { ... // connector specific configuration }, "offset": { ... // connector specific configuration } } ] }
Create a V2 connector in the current or specified Kafka cluster context.
confluent connect cluster create --config-file config.json
Note
The configuration payload differs between V1 and V2 connectors. In the V2 connector, the value field contains only the value of the key-value pair and does not include the key, topic, partition, and offset. Make necessary changes in the V2 connector to match the configurations from the V1 connector.
Verify the migration and confirm that the V2 connector is running successfully with the V1 payloads.
Set
table1.start.timestamp
andtable1.timestamp.field
to fetch all records that were created or updated from a specific point in time.Delete the V1 connector.
For more information, see Manage Offsets for Fully-Managed Connectors in Confluent Cloud.
Configuration Properties¶
Use the following configuration properties with the fully-managed ServiceNow Source V2
connector. The connector allows you to fetch records from up to five tables simultaneously.
For example, if you enter 2 in the tables.num
field, you should configure two tables
using the Table-1 configurations section. For more information,
see sample JSON file containing the
table configuration properties.
How should we connect to your data?¶
name
Sets a name for your connector.
- Type: string
- Valid Values: A string at most 64 characters long
- Importance: high
Kafka Cluster credentials¶
kafka.auth.mode
Kafka Authentication mode. It can be one of KAFKA_API_KEY or SERVICE_ACCOUNT. It defaults to KAFKA_API_KEY mode.
- Type: string
- Default: KAFKA_API_KEY
- Valid Values: KAFKA_API_KEY, SERVICE_ACCOUNT
- Importance: high
kafka.api.key
Kafka API Key. Required when kafka.auth.mode==KAFKA_API_KEY.
- Type: password
- Importance: high
kafka.service.account.id
The Service Account that will be used to generate the API keys to communicate with Kafka Cluster.
- Type: string
- Importance: high
kafka.api.secret
Secret associated with Kafka API key. Required when kafka.auth.mode==KAFKA_API_KEY.
- Type: password
- Importance: high
Schema Config¶
schema.context.name
Add a schema context name. A schema context represents an independent scope in Schema Registry. It is a separate sub-schema tied to topics in different Kafka clusters that share the same Schema Registry instance. If not used, the connector uses the default schema configured for Schema Registry in your Confluent Cloud environment.
- Type: string
- Default: default
- Importance: medium
value.subject.name.strategy
The method to construct the subject name used to register the value schema with the Schema Registry. Valid values are TopicNameStrategy, RecordNameStrategy, or TopicRecordNameStrategy.
- Type: string
- Default: TopicNameStrategy
- Valid Values: RecordNameStrategy, TopicNameStrategy, TopicRecordNameStrategy
- Importance: medium
Output messages¶
output.data.format
Output Kafka record value format. Valid entries are
AVRO
,JSON_SR
, orPROTOBUF
. Ensure you configure the Confluent Cloud Schema Registry for such schema-based message formats.- Type: string
- Default: JSON_SR
- Importance: high
ignore.default.for.nullables
When set to true, this property ensures that the corresponding record in Kafka is NULL, instead of showing the default column value.
- Type: boolean
- Default: false
- Importance: medium
Number of tasks for this connector¶
tasks.max
Maximum number of tasks for the connector.
- Type: int
- Valid Values: [1,…]
- Importance: high
Behavior on error¶
behavior.on.error
The error handling behavior setting for handling error response from HTTP requests. Valid values are FAIL or IGNORE.
- Type: string
- Default: FAIL
- Importance: low
Authentication¶
servicenow.url
ServiceNow instance URL. For example: https://${instance-id}.service-now.com/.
- Type: string
- Importance: high
auth.type
The authentication type of the endpoint. Valid values are
BASIC
orOAUTH2
.- Type: string
- Default: BASIC
- Importance: high
connection.user
The username for an endpoint requiring basic authentication.
- Type: string
- Importance: medium
connection.password
The password for an endpoint requiring basic authentication.
- Type: password
- Importance: medium
oauth2.token.url
The URL for fetching OAuth2 token. Supported grant type is Client Credentials.
- Type: string
- Importance: medium
oauth2.client.id
The client ID for fetching the OAuth2 token.
- Type: string
- Importance: medium
oauth2.client.secret
The client secret for fetching the OAuth2 token.
- Type: password
- Importance: medium
oauth2.token.property
The name of the property that contains the OAuth2 token returned by the OAuth2 token URL (defaults to access_token).
- Type: string
- Default: access_token
- Importance: medium
oauth2.client.scope
The scope parameter sent to the service when fetching the OAuth2 token.
- Type: string
- Default: any
- Importance: medium
oauth2.client.auth.mode
The encoding method of the
client_id
andclient_secret
in an OAuth2 authorization request. If set toheader
, the credentials are encoded as an Authorization: Basic <base-64 encoded client_id:client_secret> HTTP header. If set to url, the credentials are sent as URL-encoded parameters.- Type: string
- Default: header
- Importance: medium
oauth2.client.headers
HTTP headers that should be included in the OAuth2 client endpoint. Individual headers must be separated by a |.
- Type: password
- Importance: low
servicenow.ssl.enabled
Determine whether the connection to the endpoint should use SSL.
- Type: boolean
- Default: false
- Importance: medium
servicenow.ssl.keystorefile
The key store containing the server certificate.
- Type: password
- Importance: low
servicenow.ssl.keystore.password
The store password for the key store file.
- Type: password
- Importance: high
servicenow.ssl.key.password
The password for the private key in the key store file.
- Type: password
- Importance: high
servicenow.ssl.truststorefile
The trust store containing a server CA certificate.
- Type: password
- Importance: high
servicenow.ssl.truststore.password
The trust store password containing a server CA certificate.
- Type: password
- Importance: high
servicenow.ssl.protocol
The protocol to use for SSL connections.
- Type: string
- Default: TLSv1.3
- Importance: medium
Tables¶
tables.num
The number of tables to fetch data from. This value should be less than or equal to 5.
- Type: int
- Default: 1
- Valid Values: [1,…,5]
- Importance: high
Retry configurations¶
retry.backoff.policy
The backoff policy to use for retry attempts. Valid values are CONSTANT_VALUE or EXPONENTIAL_WITH_JITTER.
- Type: string
- Default: EXPONENTIAL_WITH_JITTER
- Importance: medium
retry.backoff.ms
The initial wait time in milliseconds after an error before a retry attempt is made. Subsequent backoff attempts can be a constant value or exponential with jitter (set via the retry.backoff.policy parameter). Jitter adds randomness to the exponential backoff algorithm to prevent synchronized retries.
- Type: int
- Default: 3000 (3 seconds)
- Valid Values: [100,…]
- Importance: medium
retry.on.status.codes
A comma-separated list of HTTP status codes or a range of codes to retry on. Ranges are specified with a starting code and an optional ending code. The range boundaries are inclusive. For instance, “400-” includes all codes greater than or equal to 400, and “400-500” includes codes from 400 to 500, including 500 itself. Multiple ranges and single codes can be combined for fine-grained control over retry behavior. For example, “404, 408, 500-” will retry on 404 NOT FOUND, 408 REQUEST TIMEOUT, and all 5xx error codes. Note that certain status codes, such as unauthorized, timeouts, and too many requests, will always prompt a retry.
- Type: string
- Default: 400-
- Importance: medium
max.retries
The maximum number of retries on errors before a task is failed.
- Type: int
- Default: 3
- Importance: medium
Table - 1 configurations¶
table1.name
The table name, combined with the ServiceNow Instance URL, will form the complete HTTP(S) URL. This path can be templated to include offset information.
- Type: string
- Default: “”
- Importance: high
table1.topic
Specify the topic to which data will be pushed for this table.
- Type: string
- Default: “”
- Importance: high
table1.batch.size
Size of the batch of records to be fetched from the ServiceNow table. Note that Basic and Standard Clusters may experience throughput limitations, even with a higher batch size.
- Type: int
- Default: 20000
- Valid Values: [1,…,50000]
- Importance: medium
table1.start.timestamp
Time to start fetching all updates/creation. Defaults to 1970-01-01 00:00:00. Note that the time is in UTC and requires format: yyyy-MM-dd HH:mm:ss.
- Type: string
- Default: 1970-01-01 00:00:00
- Importance: medium
table1.timestamp.field
Timestamp Field to be used for pagination.
- Type: string
- Default: sys_updated_on
- Importance: medium
table1.pagination.query
The query to be used for pagination on the table can be templated with offset information - ${offset}. Note that all other table-related configurations will be ignored if this is configured. It defaults to a timestamp-based pagination query. An example query is closed_at>=${offset}^ORDERBYclosed_at, where ${offset} refers to the pagination query offset field - closed_at.
- Type: string
- Default: “”
- Importance: low
table1.pagination.query.field
Offset field if pagination query is used.
- Type: string
- Default: “”
- Importance: low
table1.display.value
Specify whether to display values for the ServiceNow table records.
- Type: boolean
- Default: false
- Importance: low
table1.allowlisted.fields
A comma-separated list of fields that should be included in the Kafka record. The list must necessarily include the selected timestamp field (either sys_updated_on or sys_created_on) and the sys_id field. It defaults to all fields from the response.
- Type: string
- Default: “”
- Importance: low
table1.request.interval.ms
The time in milliseconds to wait between consecutive requests.
- Type: int
- Default: 2000 (2 seconds)
- Valid Values: [2000,…]
- Importance: medium
Next Steps¶
For an example that shows fully-managed Confluent Cloud connectors in action with Confluent Cloud ksqlDB, see the Cloud ETL Demo. This example also shows how to use Confluent CLI to manage your resources in Confluent Cloud.