As per Hindu legend, the place was once a bamboo forest. A cow at this place was pouring it milk on a mound in an elevated place. The shepherd informed the king about the event and the king dug the place with a tool called Vasi. Blood was oozing out of the place and the king and the troops were taken aback. The enemies left a pot of snakes and a snake charmer came and rescued the king. Shiva appeared in the dreams of the king that night and informed him that the snake charmer was none other than Shiva himself. The king was much pleased and built a temple housing the Linga found in the place. The tilted feature of the image in the temple is believed to have been caused by the tool Vasi.