I want to document all inbound and outbount traffic from an ec2 machine. I want all to be kept on a log on the machine (or on an s3 bucket, nevermind...) basiclly I need a log that sniffs all the traffic. For example if I do a cURL command from the machine to another server I want the request and the response to be documented to a log.
Can you recommend which way is best to implement the requirements? Currently, I don't know which direction should I follow and looking for guidance in implementing a solution
Thank you!