The procedure is usually performed under local anesthesia. The patient is positioned comfortably, often sitting or lying down. A needle or catheter is then inserted into the abdominal cavity to drain the fluid. Ultrasound guidance may be used to ensure accurate placement of the needle. The fluid is collected in containers for analysis. The procedure typically takes 20 to 30 minutes and is generally well-tolerated.