USM Anywhere enables you to add and apply rules to files stored in your Amazon Simple Storage Service (S3) bucket.
To add a rule
- Go to Data Sources > Cloud Connectors to open the Cloud Connectors main page.
- Click the icon of the cloud connector for which you want to add a rule, and then select View Connector.
- Click the Data Source Rules tab.
Click Add Rule.
Important: The AWS Cloud Connector must be enabled.
The Add New Data Source Rule dialog box opens.
In the Connector Source field, choose the Amazon S3 bucket.
You can choose one of them or all.
(Optional.) In the Filenames Matching With field, use regular expressions (regex) to specify a pattern that must be followed by the files.
If you don't specify anything, USM Anywhere will match all files in the Amazon S3 bucket with the specified data source. See Using Regular Expressions in USM Anywhere for more information.
This expression pattern means that all files inside the CloudTrail folder will match with the rule.
Important: If the file-name is not matching any rule, USM Anywhere tries to identify the data source based on the file-name and the event format. The events are parsed as generic if the data source can't be identified.
In the Data Sources field, enter the data source you want to match with the files.
If you enter more than one data source, USM Anywhere will try to match with the first data source. If USM Anywhere can't generate an event, then it will try to match with the following data source, and so on. If the file doesn't match with any data source, then USM Anywhere will create an event as an AlienVault Generic Data Source. See AlienVault Generic Data Source for more information.
- Click Save.