We are moving our server farm to AWS - and I want to fully test the new servers before sending them live traffic.
Question is: How would I trap all incoming traffic and copy it to the new servers?
For example: I know the URLs are in the access logs. How would I read the access logs in real time (or similar) and then send those URLs to the new server?
Obvioulsy the response from the new server would go back to the old server and be ignored.
All the servers are running Ubuntu, if it makes a difference.
What you describing is usually referred to as "log replay".
Normally you feed an existing access log to the log replay program and it sends the requests again.
Some allow you to respect the time gab between the original requests, others also allow you to speed up the log replay.
Realtime replay could also be possible by configuring your webserver to (also) pipe access log to the program.
It will need to be able to support reading from there of course.