You can't catch "terrorists" with surveillance and even generally bad actors, except for some naive desperate people doing stupid things. What you can do with surveillance is catch dissidents, create some chilling effect on dissent and overall use it as a tool to suppress dissent. It's basically a power supporting tool, nothing more.