If you've ever had to dig through Windows security event log for a specific event, you know it's a bit of a pain. Fortunately, you can speed up your search with Powershell's get-eventlog cmdlet. Let's look at filtering the security logs to see who has logged on to a computer. The Event ID for a … Continue reading Filtering Security Event Logs with Powershell
Part of a backup strategy in AWS could involve file-level backups. As S3 storage is cheaper than EBS volumes, it could make sense to store your files in S3. A possible way to go about this would be to use a utility like Duplicati to backup files to an S3 bucket. Another method is with … Continue reading Backing up files from a Windows Instance to S3.
There are certain types of servers that you'd desire to have highly available, but the cost of running multiple servers would be a bit impractical. In our scenario, we'll setup a management instance behind a load balancer. The instance will be part of an auto scaling group, which will lauch a new instance in the … Continue reading Autoscaling to One: A High Availability Technique
VPC peering allows you to connect 2 VPCs, much like a VPN tunnel allows for traffic between two sites in traditional, on-prem networking. We'll go through the setup for VPC peering... For our lab setup, there are 2 VPCs- VPC1 and VPC2, which we'll be peering together. Note that the IP address space DOESN'T overlap. … Continue reading VPC Peering: A Walk Through
In a previous post, I discussed how to setup a Windows EC2 instance to monitor disk space usage with CloudWatch. Another key attribute to monitor is memory usage. Memory usage, just like disk space, is a performance monitor in Windows. When examining the available performance counters available within Windows, the best counter for our objective … Continue reading Monitoring Memory Usage on a Windows EC2 Instance with CloudWatch
By default, CloudWatch has some native monitoring for EC2 instances (CPUUtilization, NetworkIn/Out, DiskWriteBytes/DiskReadBytes, etc). However, a few key parameters are missing by default- one of which is free disk space. Free disk space requires a custom CloudWatch monitor. Let's go through how to set that up. In the example below, we have a Server 2016 … Continue reading Monitoring Free Disk Space on a Windows EC2 Instance with CloudWatch
A while back I covered Stretching a disk in AWS EC2. Let's take a look at how it's done in Azure (Spoiler: it's also quite simple). For our example, we'll be increasing the size of a Server 2016 OS managed disk from 30GB to 40GB. First, we'll need to stop the VM. Now, AWS currently … Continue reading Stretching a disk in Azure