This question already has an answer here:
I'm connecting from an incoming international flight (Hong Kong - LA) to a domestic flight (LA - Austin) at LAX. Both flights are with American Airlines, booked under one ticket. I have a 2 hour layover, and I have Global Entry.
Will I pass through immigration and customs at LA or Austin? Will I need to check out my luggage at LAX and check them back in?