Dhammapada Verse 8
asubhanupassim viharantam indriyesu susamvutam
bhojanamhi ca mattannum saddham araddha viriyam
maro tam ve nappasahati vato selam pabbatam iva.
Those who do not dwell on the attractiveness of sensual enjoyments, and live with the senses guarded, and are moderate in eating, and are devoted to the teachings and practice, they are not overpowered by emotions just as a rocky mountain is not shaken by the wind.
People have a false idea about life. They think that life is very easy. Life is a bed of roses. They see the roses but ignore all the thorns. They keep focus on bright side of life and ignore the dark side. But the life is a whole. You cannot understand life in parts. As a result of this ignorance they become attached to things and people. When these things and people are parted from them, they feel like dying.
Those persons who look at the both sides of life. Those who see the pleasant side and unpleasant side both, have their attachments weaken. Accepting and understanding the both sides makes you aware. When this happens, the change and separation from attached objects do not bring much sorrow and grief.
Do not keep focusing on one sided view of life. True optimism of life is an ability to see a solution to the problems.
If you want to find the true happiness in life then you must start thinking in a realistic way.
Meditation is the only way to watch the life as it is. Meditation will make you awake and you will see the life on its totality. When the witnessing consciousness of meditation will touch you, a great awakening will happen. You will know the first time, the truth of your being.
As the meditation will deepen, your witnessing will deepen too. This will make you strong. Your watchfulness will be deepening in very center of your heart. You will not be overpowered by emotions just as a rocky mountain is not shaken by the wind.