Why awslogs is removed in AL2023

0

Hi there,

As shown in this list https://docs.aws.amazon.com/linux/al2023/release-notes/removed-AL2023.2-AL2.html, awslogs is removed in Amazon Linux 2023. Is awslogs no longer supported or discouraged by Amazon? Is there any replacement in AL2023?

Thanks, Tony

Tuan
demandé il y a 6 mois1801 vues
2 réponses
1

Hello.

awslogs stands for CloudWatch logs Agent.
Please use CloudWatch Agent as CloudWatch logs Agent is deprecated.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/UsePreviousCloudWatchLogsAgent.html

CloudWatch includes a unified CloudWatch agent that can collect both logs and metrics from EC2 instances and on-premises servers. The older logs-only agent is deprecated and is no longer supported.

For information about migrating from the older logs-only agent to the unified agent, see Create the CloudWatch agent configuration file with the wizard.

The rest of this section explains the use of the older CloudWatch Logs agent for customers who are still using it.

The Amazon Linux 2023 repository includes CloudWatch Agent (amazon-cloudwatch-agent).
https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.2.html

profile picture
EXPERT
répondu il y a 6 mois
profile picture
EXPERT
vérifié il y a 6 mois
0

Thanks Riku,

I understand the reason behind the removal of awslogs now, but I have a follow-up question: I don't have any existing awslogs configuration so I guess there is no thing to migrate. The guide you provided in the link https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/UsePreviousCloudWatchLogsAgent.html seems to be for the old Cloud Watch Logs Agent, not how to use Cloud Watch Agent to forward application logs to Cloud Watch.

My use case is this: I have a docker container running in an EC2 (running AL2023), and I want to forward container logs to CloudWatch using the agent. Can you please point me to any relevant doco?

Best, Tony

Tuan
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions