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
preguntada hace 6 meses1794 visualizaciones
2 Respuestas
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
EXPERTO
respondido hace 6 meses
profile picture
EXPERTO
revisado hace 6 meses
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
respondido hace 6 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas