The CSF fluid taken during a spinal tap will also be tested to find the cause of encephalitis. It may show which type of virus or germ is causing the inflammation.