Collect AWS Aurora logs
This document explains how to ingest AWS Aurora logs to Google Security Operations. AWS Aurora is a managed relational database service that offers high performance, scalability, and availability. In this integration, you will configure AWS Aurora to forward logs to Google SecOps for analysis, monitoring, and threat detection.
Before you begin
Make sure you have the following prerequisites:
- Google SecOps instance
- Privileged access to AWS
- AWS Aurora database cluster set up and running
Configure Amazon S3 bucket
- Create an Amazon S3 bucketfollowing this user guide: Creating a bucket
- Save the bucket Nameand Regionfor later use.
- Create a user following this user guide: Creating an IAM user .
- Select the created User.
- Select the Security credentialstab.
- Click Create Access Keyin the Access Keyssection.
- Select Third-party serviceas the Use case.
- Click Next.
- Optional: add a description tag.
- Click Create access key.
- Click Download CSV fileto save the Access Keyand Secret Access Keyfor later use.
- Click Done.
- Select the Permissionstab.
- Click Add permissionsin the Permissions policiessection.
- Select Add permissions.
- Select Attach policies directly.
- Search for and select AmazonS3FullAccessand CloudWatchLogsFullAccesspolicies.
- Click Next.
- Click Add permissions.
Configure Enhanced Monitoring
- Sign in to the AWS Management Console .
- In the search bar, type RDSand select RDSfrom the services list.
- In the RDS Dashboard, select Databasesfrom the navigation pane.
- Select the Aurora clusteryou want to monitor.
- Under the Logs & monitoringsection, click Modify.
- Go to the Monitoringsection and enable Enhanced Monitoring.
- Set the Monitoring roleto the appropriate IAM role that has permissions to publish to CloudWatch Logsor S3.
- Save the changes and apply them to your Aurora cluster.
How to configure AWS Aurora audit logs
- In the RDS Dashboard, select Databasesand click your Aurora cluster.
- Under the Logs & Monitoringsection, click Modify.
- In the Database Optionssection, make sure that Enable Audit Logsis selected.
- Under Destination, choose S3and specify the S3 bucketwhere logs will be stored.
- Click Save changesto apply the settings.
Optional: AWS Aurora Logs Configuration using CloudWatch
For additional monitoring capabilities, you can configure CloudWatch Logsto capture Aurora logs.
- In the RDS Dashboard, select your Aurora cluster.
- Under the Logs & Monitoringsection, make sure that CloudWatch Logsintegration is enabled.
- Go to CloudWatch Logsand create a new Log Groupto store the Aurora logs.
- On the Log Groupsscreen, choose the name of your new Log Group.
- Select Actions > Export data to Amazon S3.
-  On the Export data to Amazon S3screen, under Define data export, set the time range for the data to export using Fromand To. 
-  Choose S3 bucket, select the account associated with the Amazon S3 bucket. 
-  S3 bucket name, select an Amazon S3 bucket. 
-  S3 Bucket prefix, enter the randomly generated string that you specified in the bucket policy. 
-  Choose Exportto export your log data to Amazon S3. 
-  To view the status of the log data that you exported to Amazon S3, select Actions > View all exports to Amazon S3. 
Set up feeds
There are two different entry points to set up feeds in the Google SecOps platform:
- SIEM Settings > Feeds > Add New
- Content Hub > Content Packs > Get Started
How to set up the AWS Aurora feed
- Click the Amazon Cloud Platformpack.
- Locate the AWS Auroralog type.
-  Specify the values in the following fields. - Source Type: Amazon SQS V2
- Queue Name: The SQS queue name to read from
-  S3 URI: The bucket URI. -  s3://your-log-bucket-name/- Replace your-log-bucket-namewith the actual name of your S3 bucket.
 
- Replace 
 
-  
-  Source deletion options: Select the deletion option according to your ingestion preferences. 
-  Maximum File Age: Include files modified in the last number of days. Default is 180 days. 
-  SQS Queue Access Key ID: An account access key that is a 20-character alphanumeric string. 
-  SQS Queue Secret Access Key: An account access key that is a 40-character alphanumeric string. 
 Advanced options - Feed Name: A prepopulated value that identifies the feed.
- Asset Namespace: Namespace associated with the feed.
- Ingestion Labels: Labels applied to all events from this feed.
 
-  Click Create feed. 
For more information about configuring multiple feeds for different log types within this product family, see Configure feeds by product .
UDM Mapping Table
| Log Field | UDM Mapping | Logic | 
|---|---|---|
| account | principal.group.product_object_id | Directly mapped from the accountfield in the raw log. | 
| column1 | timestamp_epoch | Directly mapped from the column1field in the raw log. Used to derivemetadata.event_timestamp. | 
| column10 | Varies | Can be principal.process.command_line,objectornumberdepending on the log format. | 
| column11 | ddlorresponseorcommand_line2 | Can be principal.resource.resource_subtype(ddl),security_result.outcomes.value(response) or part ofprincipal.process.command_line(command_line2) depending on the log format. | 
| column12 | operationorresponseorcommand_line3 | Can be sr.summary(operation),security_result.outcomes.value(response) or part ofprincipal.process.command_line(command_line3) depending on the log format. | 
| column13 | databaseorresponse | Can be target.resource.name(database) orsecurity_result.outcomes.value(response) depending on the log format. | 
| column14 | object | Directly mapped to principal.resource.product_object_idortarget_data.resource.namedepending on the log format. | 
| column15 | command_line | Directly mapped to principal.process.command_line. | 
| column16 | response | Directly mapped to security_result.outcomes.value. | 
| column2 | timestamportimestamp_ms | Directly mapped from the column2field in the raw log. | 
| column3 | iporhostname | Can be principal.iporprincipal.resource.namedepending on the log format. | 
| column4 | portoruserid | Can be principal.portorprincipal.user.useriddepending on the log format. | 
| column5 | useridorip | Can be principal.user.useridorprincipal.ipdepending on the log format. | 
| column6 | hostnameorconnection_id | Can be principal.resource.nameornetwork.session_iddepending on the log format. | 
| column7 | connection_idorquery_id | Can be network.session_idorprincipal.process.piddepending on the log format. | 
| column8 | operation | Directly mapped to sr.summaryormetadata.product_event_type. | 
| column9 | query_idordatabase | Can be principal.process.pidortarget_data.resource.namedepending on the log format. | 
| command_line | principal.process.command_line | Directly mapped from the extracted command_linefield. | 
| connection_id | network.session_id | Directly mapped from the extracted connection_idfield. | 
| database | target.resource.name | Directly mapped from the extracted databasefield. Derived from several fields likeoperation,command_line,has_principal_user, andhas_principal_machinethrough conditional logic in the parser.  Can beRESOURCE_DELETION,RESOURCE_CREATION,RESOURCE_READ,RESOURCE_WRITTEN,USER_RESOURCE_ACCESS,USER_UNCATEGORIZED, orGENERIC_EVENT. Hardcoded to "AWS_AURORA". Mapped fromcolumn8or derived from parser logic. Hardcoded to "AURORA". Hardcoded to "AMAZON". | 
| has_principal_machine | has_principal_machine | Set to "true" if principal.ipis present, otherwise initialized to "false". | 
| has_principal_user | has_principal_user | Set to "true" if principal.user.useridis present, otherwise initialized to "false". | 
| hostname | principal.resource.name | Directly mapped from the extracted hostnamefield. | 
| ip | principal.ip | Directly mapped from the extracted ipfield. | 
| logevent.id | security_result.detection_fields.value | Nested within target.logEvents.logEvents, mapped with key "id". | 
| logevent.message | security_result.detection_fields.value | Nested within target.logEvents.logEvents, mapped with key "message". Used to extractprincipal.ip,time_unix,operation, anduser. | 
| logevent.timestamp | security_result.detection_fields.value | Nested within target.logEvents.logEvents, mapped with key "timestamp". | 
| object | target_data.resource.nameorprincipal.resource.product_object_id | Directly mapped from the extracted objectfield. | 
| operation | sr.summary | Directly mapped from the extracted operationfield. | 
| port | principal.port | Directly mapped from the extracted portfield. | 
| query_id | principal.process.pid | Directly mapped from the extracted query_idfield. | 
| response | security_result.outcomes.value | Directly mapped from the extracted responsefield. | 
| service | principal.application | Directly mapped from the servicefield in the raw log. | 
| src_ip | principal.ip | Extracted from logevent.messagewithin the nestedtarget.logEvents.logEventsstructure. | 
| target.logEvents.logGroup | target.resource.attribute.labels.value | Mapped with key "logGroup". | 
| target.logEvents.logStream | target.resource.attribute.labels.value | Mapped with key "logStream". | 
| target.logEvents.messageType | target.resource.attribute.labels.value | Mapped with key "messageType". | 
| target.logEvents.owner | target.resource.attribute.labels.value | Mapped with key "owner". | 
| timestamp_epoch | metadata.event_timestamp | Converted to metadata.event_timestampusing thedatefilter. | 
| user | principal.user.userid | Extracted from logevent.messagewithin the nestedtarget.logEvents.logEventsstructure. | 
| userid | principal.user.userid | Directly mapped from the extracted useridfield. | 
Need more help? Get answers from Community members and Google SecOps professionals.

