'Such as' functions as an indicator of the apposition between the noun ('festivals') and the example ('Onam' etc). I'd call it an adverbial conjunct, but maybe Casi can dissect the phrase further.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.