Easy way to copy hosts contacted by a process?

What’s the easiest way to export or copy all hosts from processes history of hosts contacted?

Hi whiteandnerdy
have a look at this link for using export to a log file.