Hi @sarit_s ,
you have to schedule your alert every three minutes and insert a stats count and a threshold, so if you want to count the events where there's an error, you could schedule every three minutes an alert like this:
index=your_index error="your_error"
| stats count
| where count>1
then you have to configure your alert to trigger if results are greater than zero.
Ciao.
Giuseppe