Check fuses, check bulbs. If these are good replace headlight switch.
I've seen two other post on here with the same problem and the same 2008 Tirbeca. I'd ask the dealer if there is a know defect.
Search Subaru Tribeca Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Subaru Tribeca Experts