1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hello.
Parsing Logs in CloudWatch: Since the prefix remains consistent, you can use a combination of CloudWatch insights query language or other log processing tools to split the log lines into prefix and the actual log message, and then parse the JSON content.
For instance, using CloudWatch Insights, you can structure your query like:
fields @timestamp, @message
| parse @message as prefix, json_content
| filter @message like "MODEL_LOG"
This will give you the raw JSON logs in the json_content variable which you can then further parse or manipulate as needed.
Best regards, Andrii
관련 콘텐츠
- AWS 공식업데이트됨 2년 전