If you want to create a custom USM Anywhere log collection job for Amazon CloudWatch, use this procedure to create it.
Important: Before you create a new CloudWatch log collection job, you must have CloudWatch enabled in your AWS environment. For more information, see CloudWatch Logs.
If you choose to enable CloudWatch in your AWS environment, you should make sure that you are not collecting more data than you need because this service incurs AWS costs based upon usage. Refer to the pricing information to plan and configure your usage.
To create a new CloudWatch log collection job
- Go to Settings > Scheduler.
In the left navigation list, click Log Collection.
Note: You can use the Sensor filter at the top of the list to choose your
AWS sensorto easily review the current AWSlog jobs.
Click Create Log Collection Job.
Note: If you recently deployed a new USM Anywhere Sensor, it can take 10 to 20 minutes for USM Anywhere to discover the various log sources. After it discovers the logs, you must manually enable the
AWSlog collection jobs you want before the system collects the log data.
Enter the name and description for the job.
The description is optional, but it is a best practice to provide this information so that others can easily understand what it does.
- In the Select App option, select Amazon Web Services.
In the App Action option, select Monitor CloudWatch.
Note: USM Anywhere automatically transfers CloudWatch log data to an Amazon Simple Storage Service (Amazon S3) bucket. However, if you have raw data that you collect using another tool, you can either select raw for the Source Format type next, or use an Amazon S3 Log Collection job for this purpose instead.
Enter the Region Name, Group Name, and Stream Name information for your AWS account. Region name can be an asterisk ( * ) to monitor all regions for a given group.
In Source Format, select either of the following log formats.
syslog — All messages transmitted to USM Anywhere are processed with the assumption that they are syslog formatted.
Select this option if you have configured the CloudWatch log agent to directly forward syslog messages to a CloudWatch log group. When you choose syslog as the Source Format, the plugin selection is bypassed and USM Anywhere uses the auto-detect hints from the plugins to match the incoming messages to the correct plugin.
raw — Use for non-syslog formatted data.
If you select this option, you must choose the Plugin Name to designate the plugin that USM Anywhere uses to parse all of the streams in the group.
Important: If a group contains streams of mixed log formats, USM Anywhere parses all of them with that single plugin, which will produce undesired results. In this case, you will need configure CloudWatch to separate the streams into groups so that each contains only a single log type that can be mapped to the correct plugin.
Note: CloudWatch streams should be separated from each other by plugin type.
- In the Schedule section, specify when USM Anywhere runs the job.
- Click Save.
First, select the increment as Hour, Day, Week, Month, or Year.
Next, set the interval options for the increment. The selected increment determines the available options.
For example, on a weekly increment you can select the days of the week to run the job.
Or, on a monthly increment you can specify a date or a day of the week that occurs within the month.
To finish, set the Start time. This is the time that the job starts at the specified interval. It uses the time zone configured for your USM Anywhere instance (default is UTC).