Jyotish is deeply rooted in ancient Vedic texts. There are four Vedas: the Rigveda (the oldest), the Yujurveda, the the Samaveda, and the Atharvaveda.
Veda means knowledge. In particular, it refers to the knowledge of the truth that applies to the mysteries of existence. The Vedas are a repository of knowledge that is made up of spiritual Hymns. These are not hymns that are sung in a congregational setting in a house of worship. Rather they are a narrative story in poetic form, similar to Homer’s The Iliad.
The Vedas do not just focus on astrology, they deal with virtually every aspect of life. However, in modern times, there has been a concentration on three areas, often referred to as the 3 pillars of Vedic wisdom.