I have heard talk of data mining. I assume it's some kind of recording without actually having to play the players. Is this legal/ethical?

How is this actually done?