Important: If you choose to enable CloudWatch Logs in your Amazon Web Services (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. See the CloudWatch pricing information to plan and configure your usage.
USM Anywhere Log Collection Job Name | CloudWatch Log Group Name | Default File Path | Date Format |
---|---|---|---|
CloudWatch - Apache-Access-Logs | Apache-Access-Logs | /var/log/apache2/access.log | %d/%b/%Y:%H:%M:%S |
CloudWatch - Linux-Audit-Logs | Linux-Audit-Logs | /var/log/audit/audit.log | Use the default |
CloudWatch - Linux-Auth-Logs | Linux-Auth-Logs | /var/log/auth.log | %b %d %H:%M:%S |
CloudWatch - Osquery-Logs | OSQuery-Logs | /var/log/osquery/osqueryd.results.log | Use the default |
- Go to Settings > Scheduler.
-
In the left navigation menu, click Log Collection.
Note: You can use the Sensor filter at the top of the list to review the available log collection jobs on your AWS Sensor.
-
Click Create Log Collection Job.
The Schedule New Job dialog box opens.Note: If you have recently deployed a new USM Anywhere Sensor, it can take up to 20 minutes for USM Anywhere to discover the various log sources. After it discovers the logs, you must manually enable the AWS log 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.
- Select Sensor as the source for your new job.
- In the Action Type drop-down list, select Amazon Web Services.
-
In the App Action drop-down list, select Monitor CloudWatch.
- 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. When you choose syslog as the source format, the data source selection is bypassed and USM Anywhere uses the auto-detect hints from the data sources to match the incoming messages to the correct data source.
-
Raw: Use for non-syslog formatted data.
If you select this option, you must choose the data source that USM Anywhere will use to parse all of the streams in the group. For example, to collect Amazon Virtual Private Cloud (VPC) flow logs, select the VPC Flow Logs data source.
Important: If a group contains streams of mixed log formats, USM Anywhere parses all of them with the data source that you chose, which produces undesired results. In this case, you need to configure CloudWatch to separate the streams into different groups so that each contains only a single log type that can be mapped to the correct data source.
-
In the Schedule section, specify when USM Anywhere runs the job:
a. Select the increment as Minute, Hour, Day, Week, Month, or Year.
b. 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.Warning: After a frequency change, monitor the system to check its performance. For example, you can check the system load and CPU. See USM Anywhere System Monitor for more information.Or on a monthly increment, you can specify a date or a day of the week that occurs within the month.c. 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 (the default is Coordinated Universal Time [UTC]).Important: USM Anywhere restarts the schedule on the first day of the month if the option “Every x days” is selected.
- Click Save. USM Anywhere detects any enabled jobs with the same configuration and asks you to confirm before continuing. This is because having two jobs with the same configuration generates duplicate events and alarms.

Related Video Content