Search code examples
amazon-ec2amazon-cloudwatchsystemd

How to send specific set of logs from systemd journals logs to cloudwatch logs


I use journalctl -fu service to see the logs of a specific service. Is possible to sent systemd journal logs to cloudwatch logs?


Solution

  • I think this gist (Setting up aws log agent to send journalctl from DC/OS logs to Amazon Log Service) is what you are looking for.

    Basically setup a EC2 utility daemon process to forward journald logs to AWS CloudWatch.