Skip to content

Glue 5.0 Continuous Logging Removed

0

The migration notes for Glue 5.0 (under "breaking changes") state that continuous logs are no longer available (why??). I was using this to send logs from specific jobs to specific log groups for processing. Now all the logs are going only the Error Log group. Is there a way to set a custom Log group for the error logs? I'm not seeing this anywhere, and this is a very frustrating downgrade if there's no way to filter logs from ever glue job in the account without going by Job Run ID

asked 2 years ago534 views

1 Answer
0

The removal of continuous logging in Glue 5.0 was primarily driven by AWS's effort to simplify logging architecture and reduce costs.

Here are your main options for handling this:

CloudWatch Logs Subscription Filters:

  • You can create subscription filters on the error log group
  • Filter and route logs based on Job name or other patterns to different destinations
  • Can send to other log groups, Lambda functions, or Kinesis streams

Custom Logging Solution:

import logging
import watchtower

# Create custom logger
logger = logging.getLogger('custom_logger')
logger.setLevel(logging.INFO)

# Set up CloudWatch handler with specific log group
handler = watchtower.CloudWatchLogHandler(
  log_group_name='/custom/glue/logs',
  stream_name='my-glue-job'
)
logger.addHandler(handler)

# Use in your code
logger.info('Custom log message')

Many users are requesting the ability to specify custom log groups Until AWS provides a better solution, the CloudWatch Logs Subscription Filters approach is probably your best option for production environments, as it requires no code changes and can be managed centrally.

AWS
EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.