Together, these data suggest a cell-intrinsic role for CXCR6 in promoting CD8+ TRM cell maintenance in the CNS after viral encephalitis, contributing to persistent microglial activation and synaptic elimination. Here, CXCR6 is linked to viral encephalitis.