0

I have a lambda function that subscribes to the API Gateway Access Logs. Here , I am trying to fetch the path and resource path from the api gateway log. The issue I am facing is that, when the resource_path is coming as "/", the path field is empty. I wanted to check whether this is an expected behaviour of AWS apigateway log.

The function looks similar to this:

 def parse_log_entry(log_entry) 
    {
      "request_path" => log_entry["path"],
      "request_id" => log_entry["request_id"],
      "resource_id" => log_entry["resource_id"],
      "resource_path" => log_entry["resource_path"],
     }

0 Answers0