From the side, a beam of light is only visible if part of the light is scattered by objects: tiny particles like dust, water droplets (mist, fog, rain), hail, snow, or smoke, or larger objects such as birds. If there are many objects in the light path, then it appears as a continuous beam, but if there are only a few objects, then the light is visible as a few individual bright points. In any case, this scattering of light from a beam, and the resultant visibility of a light beam from the side, is known as the Tyndall effect.
For the purpose of visibility of light beams from the side, sometimes a haze machine or fog machine is used. The difference between the two is that the fog itself is also a visual effect.