def parseTrackLog(line):
    """Parse trackLog line and return important fields: db, year, month, hgsid,
       and a list of tracks"""
    #### Sample line being processed ####
    # [Sun Mar 05 04:11:27 2017] [error] [client ###.###.###.##] trackLog 0 hg38 hgsid_### cytoBandIdeo:1,cloneEndCTD:2
    ####
    
    splitLine = line.strip().split('trackLog')
    prefix = splitLine[0].split()
    month = prefix[1]
    year = prefix[4].replace("]","")
    suffix = splitLine[1].split()
    db = suffix[1]
    hgsid = suffix[2]
    if len(suffix) > 3:
        activeTracks = suffix[3]
        tracks = activeTracks.split(",")
    else:
        tracks = []
    
    return db, year, month, hgsid, tracks