Some strike the earth while others surround the sun as a solar corona yet others go into space. Then those that go into space are known to us as solar winds. In 1973 the sun threw off the largest flare in recorded history. The sun emits X-rays. Usually X-rays come from objects with temperatures in the millions and not in the thousands like the sun.
Sunspots are in the millions of degrees unlike the rest of the sun.
And that is where the X-rays come from. The X-ray glow is visible surrounding the sun. The sun has a magnetic carpet. The visible surface appears to have tens of thousands of magnetic north and south poles joined by looping field lines. These fields last over periods of forty hours.