International audienceX-ray gas attenuators are used in high-energy synchrotron beamlines as high-pass filters to reduce the incident power on downstream optical elements. The absorption of the X-ray beam ionizes and heats up the gas, creating plasma around the beam path and hence temperature and density gradients between the center and the walls of the attenuator vessel. The objective of this work is to demonstrate experimentally the generation of plasma by the X-ray beam and to investigate its spatial distribution by measuring some of its parameters, simultaneously with the X-ray power absorption. The gases used in this study were argon and krypton between 13 and 530 mbar. The distribution of the 2p excited states of both gases was measur...