aws / aws-cloudtrail-processing-library

The AWS CloudTrail Processing Library helps Java developers to easily consume and process log files from AWS CloudTrail.
Apache License 2.0
87 stars 30 forks source link

Message truncated in cloudtrail #13

Open diegotecbr opened 1 year ago

diegotecbr commented 1 year ago

Good afternoon, the message in CloudTrail appears incomplete, does anyone know how to retrieve the complete encoded message?

eg.: "errorMessage": "You are not authorized to perform this operation. Encoded authorization failure message: yy00r41dxhsGHv2wBQ6iAaslG-_TOIqTkRzNZxyp9HZH9guY5aCjlsPBxxM8myj_Y2pLcK0jhv7-dysstqTNhwrY1EZjM1y3biI8lVziop7LkyGx6WTkA8Zcae-f5s3grzQCKwzTsANzE5v4UeuikcACczPrAxXRRloVxVvJokwXwHytymJ3UNOA_FG_1XfYvUtv9kgqE6-Yx6mrx7N5EeT0nX_e1iiNnSdSKNA9VmHITSwNaHdkAtoR_etVANZOO4wD78j5_PddNQemoiG0H9q4053r1xbHITwH-uV2HVOqzeSz-sv9Fk3GoRzQJ-w149RgOxRN3t4HX3jcOUMRfP6vOYmFaIo3llx_UZGtRpl_AtV6HvLm17kxNiK-Kg1ER8wZGVU2xRFAZhWgHstBz1ia0ZigEE9PKXZbn0RUBXM_dQkJsHgL3BhZCs27EtxWSMNkxPcOPy8_5Go2NYJ_pYOFUI9pnIZCUEz1pYRsW7ylK9QTxuG5iJpbjFGjX_SBnNA9u_hheKi8SmQ3lO6izedi_Tl5zJRTKp9B7FXrMXfbWYPupMylzVP9pSCih_fs2ZHWNPpa70U4g8IecipPm-UtYdM8svUmX0uDy-zAVgeAjFIWp52JWMfgWLvqUtGfFcz54xokwwezzDjikmVM75-GqSF4fLovXqQFC82k3wMqpblHvFFXSgXIas5pItLOK-k67b-NAQDA0BQMirjaWOzy271k7TlWp2twfMrOITcXCjYbMa35eCvSIry_bR-dYi6qSDyskAOi053KARVw1o0kZrSU8om7qG1Ppt_8rbjyn_op5lDZ6XzD63LHSgNv18rMlOMLt00rMSa4Bjt0du39rVcEv6uYl4Q4O0nmdQDk1fgLiC6IqOa1GPPvHRNHlTqeRvu-Z85JrbREHJN-ZhV8irX9qrGrnBMd...",

AMMullan commented 1 year ago

I don't understand how this hasn't been complained about more - not being able to properly view complete errors (even encoded) makes it a nightmare to try to fix problems. This problem is only a major in some services where the encoded error isn't displayed on screen but it's still huge either way - as customers we should be able to diagnose issues in the cloud environment we pay for.

bgpanw commented 2 weeks ago

+1 This is a huge pain. There has to be more noise and another way to get more attention for this. There's a 1KB maximum field size for this: CloudTrail record contents

sbotman commented 2 weeks ago

+1 truncating messages in cloudtrail is hard to debug :(