AWS cloudwatch terminal output logs

I’m currently doing my internship, and we were tasked to set up a hawkbit service on EWS ECR.
Hawkbit is used for software update roll-outs. We hace hit 2 bumps that we’re currently stuck on.

first if we run the docker image on our local server the hawkbit service starts automatically by using a sh-file and running the following command in our dockerfile : CMD [“/hawkbit.sh”]

  • Elastic Beanstalk Multicontainer Docker Environments: redirect requests between 2 APIs
  • docker-machine with amazon ami HVM doesn't work
  • How to achieve consistency of re-baking an AMI
  • How to forward an additional port to docker container created by mupx?
  • How do you share privileged information with a docker container deployed as a worker on elastic beanstalk?
  • Dockerrun.aws.json structure for ECR Repo
  • if we run the image in a cluster on ECR the service doesn’t start automatically.

    secondly, when hawkbit is running it outputs on the terminal, I can out this output into a log file, however, I’m not able to check the log on cloudwatch.
    I used the following to create the file and put the input into the file:
    2>&1 > /var/log/hawkbit/hawkbit

    and I’ve edited the awslog.conf file as following:

    [/var/log/hawkbit/hawkbit]
    file = /var/log/hawkbit/hawkbit.*
    log_group_name = /var/log/hawkbit/hawkbit
    log_stream_name = {cluster}/{container_instance_id}
    datetime_format = %Y-%m-%dT%H:%M:%SZ
    

    any idea’s would be very appreciated

  • Logstash Removed from cluster after joining with elasticsearch in docker
  • Auto-restarting Docker container on Google Compute Engine
  • Creating docker container with Jetty and Cassandra
  • Unable to Connect Jenkins Windows 10 Slave to Master running
  • How am I supposed to access a named volume from the host?
  • Jhipster-Logstash does not start correctly
  • One Solution collect form web for “AWS cloudwatch terminal output logs”

    Things to check regarding awslogs agent:

    1. ensure that the service is running
    2. check /var/log/awslogs.log file for errors
    3. make sure instance has role attached with permissions sufficient for agent to work, read about required permissions here.
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.