Amazon CloudWatch data input configuration fields
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 determine whether to use a specific MID Server or a MID Server cluster. This feature is supported in the Health Log Analytics application, Version 26.0.17 - February 2023 and later, available from the ServiceNow Store. |
| 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 the Execute on field is set to Specific MID Server Cluster) The MID Server cluster to which the log data is pulled.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. This feature is supported in the Health Log Analytics application, Version 26.0.17 - February 2023 and later, available from the ServiceNow Store. Note: For more information about MID Server clusters, see Configure a MID Server cluster.
This field is required. |
| 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 |