Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

About the Device

Windows Server provides a stable and secure platform for managing network infrastructure, data storage, and application deployment. Key features include Active Directory for centralized user management, Group Policy for configuration consistency, and Hyper-V for virtualization. It supports a variety of server roles such as file server, web server, and domain controller, allowing organizations to tailor their server environment to meet specific requirements. With features like Remote Desktop Services, Windows Server facilitates remote access and administration. Additionally, it incorporates advanced security measures, such as Windows Defender and BitLocker, to safeguard data and systems. As a versatile and scalable solution, Windows Server plays a crucial role in powering the infrastructure of diverse businesses and enterprises.

Device Information

 Entity

Particulars

Vendor Name

Amazon Web Services

Product Name

Windows

Type of Device

Cloud

Collection Method

Log Type

 Ingestion label

Preferred Logging Protocol - Format

Log Collection Method

Data Source

Windows Event

 WINEVTLOG

 XML

C2C - Storage

https://cloud.google.com/chronicle/docs/reference/feed-management-api#amazon_sqs

Device Configuration

Pre-requisites

Below steps are specifically for EC2 Instance based Windows Deployments.

To Configure Unified CloudWatch Agent to fetch logs from the EC2 Windows instances

  1. Setup IAM instance profile roles for Systems Manager.

    1. Create IAM Role.

image-20240904-102721.png

b. Attach all the policies displayed in below image and save the Role.

image-20240904-102803.png

c. Attach the Role created to Windows EC2 server.

image-20240904-121059.png
  1. To install Cloud Watch Agent on Windows server,

a. Navigate to AWS Systems Manager > Run Command 

b. Select AWS-ConfigureAWSPackage

image-20240904-104501.png

c. In Command Parameter, in Name, enter AmazonCloudWatchAgent.

image-20240904-104659.png

d. Select target Windows machine(s) where you want to install AWS CloudWatch Agent.

image-20240904-104824.png

e. Scroll down and click on Run.

image-20240904-122145.png

f. Once the command gets executed. Select the instance id and view the output. There should not be any error in output.

image-20240904-105055.png
  1. Creating Configurations file and saving it to AWS Systems Parameter Store.

a. Login to the Instance which has been selected as the target for CloudWatchAgent installation in the previous step and verify the installation of the Agent in C:\Program Files\Amazon\AmazonCloudWatchAgent.

b. Open command prompt run amazon-cloudwatch-agent-config-wizard.exe file and provide parameters as shown in below screenshots.

c. Provide the response to every query asked on the config_wizard as shown in below screenshots.

In the below snapshots, the windows log name should be selected as Security, System and Application one after another to enable logging from all relevant Windows Channels. To accomplish this, you will need to perform the same steps from config_wizard to configure logging from these Channels. We have included all possible screenshots with all possible selections.

image-20240904-105838.pngimage-20240904-110305.pngagent2-20240823-083208.pngagent3-20240823-083619.pngagent4-20240823-083804.pngagent_system-20240823-084436.pngagent_application-20240823-084620.pngimage-20240904-111352.pngimage-20240904-111507.pngimage-20240904-122943.png
  1. Once done, the Systems Manager Parameter store can be checked for the newly created configuration file with the parameters provided as an input.

a. Navigate to AWS Systems Manager > Parameter Store

b. Copy the newly created Parameter Store name.

image-20240904-122531.png
  1. Start the Agent while pointing to the configuration file using AWS Systems Manager.

a. In order to start the newly configured Cloud Watch Agents on the instances, we need to use Run Command.

b. Navigate to AWS Systems Manager > Run Command

c. Navigate to next Page and search for the specific Command using the search box.

d. Search for "AmazonCloudWatch-ManageAgent".

image-20240904-112007.png

e. Specify the name of newly created Parameter Store Configuration file.

image-20240904-112040.png

f. Select target (EC2 Windows Machine) where you want run the command and click Run.

image-20240904-112155.png

g. For Other Parameters, use default Values (i.e., timeout time is 600 Seconds by default).

image-20240904-112227.png

h. Retain default values for Rate Control.

image-20240904-112300.png

i. Since we're not currently sending any events to the S3 bucket, please leave it unchecked.

image-20240904-112425.png

j. SNS notifications are not currently enabled. Once they are enabled, you can configure them with the SNS details. For now, please keep it unchecked.

image-20240904-112503.png

k. The AWS Command Line Interface command has not been modified and is using the default value.

image-20240904-112614.png

l. After completing above configurations, click RUN > Systems manager will start the CloudWatch Agent on the instance and the log Flow will start.

image-20240904-112801.png

  1. Navigate to CloudWatch > Logs to see the logs getting collected. The newly created Log Groups will automatically be created once the logs are getting shipped through the instance by the agents.

image-20240904-113228.png

Configure continuous export of CloudWatch Logs to S3 bucket

Once you are done creating CloudWatch Log Groups, kindly follow below guide to automate continuous export of logs from CloudWatch Log group to S3 bucket using lambda.

AWSMSWIN: Cloudwatch Log Group to S3 Bucket Export Automation using Lambda

 Configure SQS

Once you followed the above guide and the continuous export of logs are available in the S3 bucket then we need to create SQS and attach it with S3. Kindly follow the below guide.

Configuring AWS Simple Queue Service (SQS) with S3 Storage

Important Links:

Integration ParametersSQS:

Parameter Display Name

Required

Description

REGION

Yes

Select the region of your S3 bucket

QUEUE NAME

Yes

The SQS queue name.

ACCOUNT NUMBER

Yes

The account number for the SQS queue and S3 bucket.

QUEUE ACCESS KEY ID

Yes

This is the 20 character ID associated with your Amazon IAM account.

QUEUE SECRET ACCESS KEY

Yes

This is the 40 character access key associated with your Amazon IAM account.

SOURCE DELETION OPTION

Yes

Whether to delete source files after they have been transferred to Chronicle. This reduces storage costs. Valid values are:

  • SOURCE_DELETION_NEVER: Never delete files from the source.

  • SOURCE_DELETION_ON_SUCCESS:Delete files and empty directories from the source after successful ingestion.

  • SOURCE_DELETION_ON_SUCCESS_FILES_ONLY:Delete files from the source after successful ingestion.

S3 BUCKET ACCESS KEY ID

No

This is the 20 character ID associated with your Amazon IAM account. Only specify if using a different access key for the S3 bucket.

S3 BUCKET SECRET ACCESS KEY

No

This is the 40 character access key associated with your Amazon IAM account. Only specify if using a different access key for the S3 bucket.

ASSET NAMESPACE

No

To assign an asset namespace to all events that are ingested from a particular feed, set the "namespace" field within details. The namespace field is a string.

 


  • No labels