awslabs / awslabs/amazon-kinesis-client-nodejs

Getting prefixed with "Skipping unexpected line on STDOUT for shard" when trying to log to AWS Cloudwatch

Open
#375 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
304
Forks
198
Avg merge
36m
Merged PRs (30d)
2

Description

Hello,

We are using aws-kcl version 2.2.5 which is using amazon-kinesis-client version 2.5.5. We have created AWS ECS nodejs service and consumer the aws-kcl library. We are using AWS cloudwatch logs to capture our logs.

When trying to add console.log in our nodejs code, every log that we have written in our code is getting prefixed with ""Skipping unexpected line on STDOUT for shard". Anyways to fix this and still use AWS Cloudwatch to capture our logs?

Contributor guide

Open the contributing guide

Research direction

Reproduce the output in an AWS ECS Node.js service using aws-kcl 2.2.5, amazon-kinesis-client 2.5.5, and CloudWatch logging. Start by tracing how console.log output is handled and prefixed with "Skipping unexpected line on STDOUT for shard"; done means application logs reach CloudWatch without that prefix or the behavior is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, node.js
Domain
backend, cloud, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.