AWS CloudWatch Logs agent for FreeBSD

I love AWS and FreeBSD but sometimes they don’t love each other. Some AWS services treat FreeBSD as a second class citizen. One such way is the AWS awslogs-agent-setup.py script. The actual daemon is just some python that runs fine, but the installer is Linux only. So I adjusted the install script to install on FreeBSD. It works well, even though my Python foo is not the strongest and my sh scripting is even worse. 🙂 Take a look at the script and use at your own risk. Any feedback is appreciated.

https://gist.github.com/jwhulette/cecf9ada340c8170b364747fc11aaaec#file-awslogs-agent-setup-py

Advertisements

8 thoughts on “AWS CloudWatch Logs agent for FreeBSD

  1. Hey Wes, trying to use your installer script with PFS 2.4.1 and seem to be running into a problem, seemingly with Sqlite3.

      1. Yeah, I wouldn’t have thought that was involved either, but I’m seeing the following in /var/log/awslogs-agent-setup.log

        pkg: No packages available to install matching ‘py27-sqlite3’ have been found in the repositories

        and

        pkg: No packages available to install matching ‘py27-pip’ have been found in the repositories

  2. Just a quick followup.

    It took several hours, but I am finally seeing some log data being uploaded to CloudWatch. Initially, I’m just uploading /var/log/system.log to start with. Any others you recommend as particularly important or useful?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s