Amazon-ECS [SOLVED]: Preserving Apache Error Logs with Docker

Amazon-ECS [SOLVED]: Preserving Apache Error Logs with Docker

Home Forums Amazon Web Services Amazon ECS Amazon-ECS [SOLVED]: Preserving Apache Error Logs with Docker

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #166036

    Cloudy Point
    Keymaster

    QuestionQuestion

    What is the best practice to preserve apache eror logs inside of containers running on AWS ECS? Is EFS really the best way to do this? If so, is it even possible to access EFS files where the logs are persisted?

    #166037

    Cloudy Point
    Keymaster

    Accepted AnswerAnswer

    Few choices: Right choice depend on what you want to do with those log files; is it just for records or you want to take any actions on it realtime etc.

    1. You can save it on EBS volumes ( for regions where EFS is not available ) or where volume need not be connected to multiple servers.

    2. Save logs on S3

    3. Send logs on CloudWatch.

    4. Install kinesis-agent and send logs to kinesis stream in real time if you want to process these logs in real time ( probably for a dashboard ) or might be invoke an alarm.

    Source: https://stackoverflow.com/questions/45357746/preserving-apache-error-logs-with-docker
    Author: Deepak
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.