record client_ip on /api/events