title: AWS API Gateway: Log Query String in Access Log
body: <p>I've enabled Access Logging to CloudWatch for my API in AWS API Gateway and that works fine.
  However, it will only log the path section of the URL and not my query string parameters.</p>
  <p>My log format looks like this:</p>
  <pre><code>[$context.requestTime] ($context.status) &quot;$context.httpMethod $context.path $context.requestId
  </code></pre>
  <p>Let's say, I call my API like this:</p>
  <pre><code>GET http://my.server.com/details?id=123
  </code></pre>
  <p>The corresponding access log line will look like this:</p>
  <pre><code>[19/Jun/2018:06:09:27 +0000] (200) &quot;GET /details 5229a43c-7387-11e8-xxxx-xxxxxxxx
  </code></pre>
  <p>I need the id=123 as well, but I can't figure out how to access it. The documentation suggest using <code>$input.params('id')</code>, but that will always return <code>-</code>.</p>