add source -> hostname to the json output
use socket.gethostname() in place of os.getenv('HOSTNAME')