We are in for a long struggle.
The problem is only as difficult as you make it. If you set the solution parameters at an impossible level, then the solution is impossible. Making screeners waste their time searching Americans looking for Muslim terrorists is a waste of resources. The Muslims are not productive immigrants, we don't need them. Dropping smart bombs to knock out weapon holding non uniformed Jihadists amongst unarmed supporters turns the job into a cat and mouse game dangerous for our young warriors.
A more direct and economical set of solution parameters would be to exterminate all Muslim clerics that preach that America is the Great Satan, Jews are the offspring of pigs and monkeys, Jews control the world, Israel does not have the right to exist, women have to wear head coverings, and Muslims who convert to other religions are to be killed, and Islam is the only true religion. And I would throw in the destruction of Mecca and make outlawing Bibles illegal in Saudi Arabia. We have 1.2 billion Muslims mad and contemptuous of us now. We would then have 1.2 billion Muslims fearful are respectful of us.