I am maintaining nginx as the load balancer for the servers. Now I am maintaining the access-logs, I need the details of the port of which I am receiving the request from the external servers.
For example if any external server calls, my server, I am getting the ip details in the access-log , I also need through which port the external server is calling to my server.
How to customize the log format in order to log the detail of port number like 8080 0r 443?