AWS CloudWatch Agent Installation and Configuration

Purpose Setup CloudWatch agent on a Linux box to collect application log so that we can query the logs in CloudWatch web console or cli. Steps The official doc is long and tedious as usual, so let me note down my simple steps to setup CloudWatch agent to collect logs. Download and install the agent 1 2 wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb sudo dpkg -i -E ./amazon-cloudwatch-agent.deb This will install the agent to /opt/aws/amazon-cloudwatch-agent/bin...

April 6, 2023 · mimimi

Hi my third blog

I’ve been trying to blog even before my uni time, tried Ghost at first, then WordPress but both did not survive long, of course it is not the blogging platform’s fault, it is me who couldn’t keep doing it haha. I figured that I don’t really need a CMS, this is just a personal blog and nothing fancy, so this time I choose Hugo, a static site generator. It should be easier to maintain, I plan to use:...

March 18, 2023 · mimimi