CSF is generally collected through a procedure known as a lumbar puncture or spinal tap. This involves inserting a needle into the lower back to draw a sample of fluid. The procedure is relatively safe but may carry risks such as headaches or, in rare cases, infection.