Skip to content

Commit

Permalink
add note on how to retrieve logs from CW
Browse files Browse the repository at this point in the history
  • Loading branch information
whummer committed Oct 17, 2023
1 parent c6cd150 commit bea785e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/en/user-guide/aws/glue/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,15 @@ The execution of the Glue job can take a few moments - once the job has finished
SQL result: ['{"name":"test1","key":123}', '{"name":"test2","key":456}']
```

To be able to see the logs above, make sure to enable `DEBUG=1` in the LocalStack container environment.
Alternatively, you can also retrieve the job logs programmatically via the CloudWatch Logs API - for example, using the job run ID `c9471f40` from above:
{{< command >}}
$ awslocal logs get-log-events --log-group-name /aws-glue/jobs/logs-v2 --log-stream-name cf4d2f81
<disable-copy>
{ "events": [ ... ] }
</disable-copy>
{{< command >}}

## Resource Browser

The LocalStack Web Application provides a Resource Browser for Glue.
Expand Down

0 comments on commit bea785e

Please sign in to comment.