Add a where clause containing your condition, something like WHERE …
eventtype = 0
for active alarms
source like '%path/to/folder/or/alarm%'
to filter by path,
or
displaypath like '%displaypath_if_you_use_it%'
You can find a good description of the Alarm Journal schema here: http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?alert_storage.htm