Soft X ray absorption spectroscopy is a broadly used method to investigate the chemical and electronic states of matter. One of the active areas of modern research in soft X ray analysis is to improve the versatility of the sample environment for in situ and operando analyses. In the present article, the basics of in situ and operando analyses using soft X rays will be introduced with recent topics obtained at SPring 8.