How to sort ip addresses that accesed a particular url?

I have huge memory spikes lately because of a mass spam I receive for some particular URL. I have imported the server-logs using and now I would like to list the ips that accessed that page. Is there a easy way to achieve that?