Amazon CloudWatch data input configuration fields
Summarize
Summary of Amazon CloudWatch data input configuration fields
This guide details the configuration fields for setting up Amazon CloudWatch data inputs in ServiceNow, specifically for the Yokohama release. It enables customers to ingest and stream log data from Amazon CloudWatch into their ServiceNow instances via MID Servers or MID Server clusters, supporting effective log analytics and monitoring.
Show less
Basic configuration
- Name: Required field to name the data input.
- Description: Optional description of the data input.
- Execute on: Choose to run on a specific MID Server or a MID Server cluster.
- MID Server: When using a specific MID Server, select one supporting basic authentication (mTLS not supported). By default, a MID Server can stream up to 10 data inputs, configurable via MID Server properties. Log ingestion is auto-enabled if not already active.
- MID Server Cluster: Supports failover clusters with basic authentication only. Data inputs run on one MID Server until failover occurs. Clusters must have at least one MID Server with capacity under 10 data inputs. Log ingestion is auto-enabled for active MID Servers.
- Service instance: Required field to bind log data to a ServiceNow service instance, which must be set to Operational.
Read-only status fields
- Status of the data input
- Transport protocol used to stream logs (Amazon CloudWatch)
- Count of log sources created
- Timestamp for when data input last stopped or failed
- Timestamp of last streamed log
- Error message shown if streaming errors occur
Query settings
- From: Required start date/time for reading logs; older data is ignored. Setting a date far in the past may cause congestion.
- Group Name(s): Required comma-separated list of Amazon CloudWatch log groups to search; wildcard () supported for all groups.
- Prefix: Filter to read only log streams whose names begin with the specified prefix. Only one prefix per data input; create multiple inputs for multiple prefixes.
- Filter pattern: Case-sensitive filter expressions to include or exclude log events based on terms. Supports single or multiple terms and exclusion syntax.
Transport settings
- AWS credentials: Select AWS credentials containing access and secret keys.
- AWS region: Required field indicating the AWS region where the CloudWatch cluster resides (e.g., us-west-1).
Advanced configuration
These optional fields fine-tune connectivity and data ingestion:
- Connection timeout: Time in milliseconds to wait for AWS connection (default 1000 ms).
- Batch size: Maximum log entries retrieved per query (default 2500).
- Socket timeout: Time in milliseconds to wait for data transfer (default 10000 ms).
- Default timezone: Timezone used if logs lack timezone info (default GMT).
- Sub sample drop and receive ratios: Controls log sampling to reduce volume (defaults set to -1 disables sampling).
- Max length in bytes: Maximum size of log messages (default 32766 bytes).
- Sleep interval: Seconds to wait before retrying after receiving no logs (default 60 seconds).
- Polling interval: Seconds to wait before polling for new logs (default 0).
- Drop if queue is full: Option to discard logs if the MID Server is overloaded (default false).
These configuration options empower ServiceNow customers to efficiently integrate Amazon CloudWatch logs, manage failover with MID Server clusters, control log ingestion volume, and handle connection reliability to optimize log analytics workflows.
Description of the fields on the Amazon CloudWatch data input configuration form.
Basic configuration
| Field | Description |
|---|---|
| Name | Name of the new data input. This field is required. |
| Description | Description of the data input. |
| Execute on | Option to select whether to use a specific MID Server or a MID Server cluster. This field is required. |
| MID |
(Only when the Execute on field is set to Specific MID Server) MID Server to which log data from Amazon CloudWatch is pulled.Note: This field is required.
|
| MID Server Cluster | (Only when Execute on is set to Specific MID Server cluster.) The MID Server cluster to which the log data is pulled. This field is required.The data input runs on a single MID Server in the cluster until that MID Server fails. The system then moves all the data input tasks to the next available MID Server in the cluster according to the configured order. Note: For more information about MID Server clusters, see Configure a MID Server cluster.
|
| Service instance | The service instance to which to bind the log data. Note: This field is required.If no relevant
service instance exists, Create an service instance and add CIs to it. Set the status of the new service instance to
Operational. |
| Field | Description |
|---|---|
| Status | Status of the data input. |
| Transport | Protocol used to stream the log data. This data input uses Amazon CloudWatch to stream log data to your instance. |
| Sources count | The number of log sources this data input has created. |
| Disabled since | The time when the data input stopped or failed. |
| Last log time | The time when the last log streamed in the data input. |
| Error message | The streaming error. This field is populated automatically. It displays only when a streaming error has occurred. |
| Field | Description | Example |
|---|---|---|
| From | The date and time to start reading the data. Data older than this date and
time is not read. Note:
Setting this value to a past date might require the system
to read large amounts of data, causing congestion. This field is required. |
Now -1 week |
| Group Name(s) | The log groups to search. If multiple log groups must be searched, specify
the groups in a comma-separated list. To fetch log data from all groups, use an
asterisk (*) as a wildcard character. This field is required. |
hla-cw-loggroup1,hla-cw-loggroup2 |
| Prefix | Name prefix for the Amazon CloudWatch log streams to read
from. The data input reads only from log streams with this name prefix. Note: Only
a single log stream prefix per data item is supported. For multiple prefixes,
create multiple data inputs. |
hla-cw |
| Filter pattern | Pattern by which to filter incoming events. Various types of filter
patterns are supported. For example:
Note: For more information,
see https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.htmlFilter patterns are case sensitive. |
|
| Field | Description |
|---|---|
| AWS credentials | Field that refers to the AWS Credentials list (aws_credentials.list). The list contains the AWS access and secret access keys. |
| AWS region | The AWS region where the Amazon CloudWatch cluster runs, for
example, us-west-1. For a list of AWS regions, see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions This field is required. |
Advanced configuration
| Field | Description | Default value |
|---|---|---|
| Connection timeout | The number of milliseconds to wait before timing out the AWS connection attempt. | 1000 |
| Batch size | The maximum number of logs retrieved per query. | 2500 |
| Socket timeout | The number of milliseconds to wait before timing out a data transfer over an established connection. | 10000 |
| Default timezone | The default timezone if the log date and time doesn't include timezone information. | GMT |
| Sub sample drop ratio | The number of logs to batch together, out of which one will be discarded. This setting is used to reduce the number of fetched logs. | -1 |
| Sub sample receive ratio | The number of logs to batch together, out of which all but one will be discarded. This setting is used to decrease the number of received logs. | -1 |
| Max length in bytes | The maximum length of log messages, in bytes. | 32766 |
| Sleep interval | The interval, in seconds, to wait before querying again after a query has returned no logs. | 60 |
| Polling interval | The interval, in seconds, to wait before polling for new logs. | 0 |
| Drop if queue is full | Option for selecting to discard logs if there is a load on the MID Server. | False |