Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

267
Views
AWS API Gateway $input variable in CloudWatch

Is it possible to log the $input variable (body variables) of a request to API Gateway from CloudWatch?

The Log format of the Custom Access Logging doesn't seem to accept $input.body or any of the other $input functions:

{"requestId": "$context.requestId",  "ip": "$context.identity.sourceIp",  "caller": "$context.identity.caller",  "user": "$context.identity.user",  "requestTime": "$context.requestTime",  "httpMethod": "$context.httpMethod",  "resourcePath": "$context.resourcePath",  "status": "$context.status",  "protocol": "$context.protocol",  "responseLength": "$context.responseLength", "body": "$input.body", params: "$input.params()"}
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Short answer: No

You can use $context variables in the access logging as documented in

https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html.

Other variables including $input are not supported. If you want to log the request/response header values, you can use execution logging with enabling 'Log full requests/responses data'.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!