Yes, trial and error. If it works, use it. If not, move on.
For me, gabapentin is a total lifesaver. It is the only thing that blocks my incapacitating headaches. On it, my head feels fine. If I'm late for a dose or miss one, the skull crushing pain rages back. I haven't had any side effects...