On my 1999 Legacy GT I had the problem on the driver side.
There was a tube in the plastic pillar between the front windshield and the side window.
It was clogged with dirt.
It was a drain tube leading from the sunroof.
So also check your sunroof if you have one.
Hope this helps.