title: How to Get User's public IP from AWS API Gateway cloudwatch Logs?
body: <p>I'm trying to get users' public IP address logged to CloudWatch logs in AWS API Gateway.</p>
  <p>I created a Model named  SourceIP and tried to add the following schema as per the AWS offical docs, but it gives me errors.</p>
  <p>Code :</p>
  <pre><code>{
       &quot;source_ip&quot; : &quot;$context.identity.sourceIp&quot;
      
  }
  </code></pre>
  <p>Error :</p>
  <blockquote>
  <p>Invalid model specified: Validation Result: warnings : [], errors :
  [Invalid model schema specified. Unsupported keyword(s):
  [&quot;source_ip&quot;]]</p>
  </blockquote>
  <p>What may be the issue on my schema ?</p>
  <p><a href="https://i.stack.imgur.com/EjEZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EjEZD.png" alt="enter image description here" /></a></p>
  <p>Any help would be greatly appreciated.</p>
  <p>Thanks.</p>