How to generate network logs for troubleshooting