Larger/International Airports:
The two closest MAJOR airports to San Luis Obispo are San Jose (SJC) and Los Angeles (LAX). Both San Jose (SJC) and Los Angeles (LAX) are 3 hour drives to San Luis Obispo.
Smaller/Regional Airports:
In San Luis Obispo there is a small regional airport, San Luis Obispo Regional Airport (SBP), that is a 15 minute drive to downtown San Luis Obispo. This airport does have connecting flights from Los Angeles, San Francisco, Dallas, Phoenix, Denver, etc.
Also, Santa Barbara has a small regional airport, Santa Barbara Airport (SBA), that is a 1.5 hour drive to downtown San Luis Obispo. This airport has Southwest flights available connecting from Denver, Dallas, St. Louis, Sacramento, etc.