# How can I find alarms which are tagged critical?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-find-alarms-which-are-tagged-critical/63850>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 7, 2022, 6:36pm UTC](https://forum.inductiveautomation.com/t/how-can-i-find-alarms-which-are-tagged-critical/63850 "2022-09-07T18:36:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratik\_jain](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@pratik\_jain](https://forum.inductiveautomation.com/u/pratik_jain)\
**Post date:** [September 7, 2022, 6:36pm UTC](https://forum.inductiveautomation.com/t/how-can-i-find-alarms-which-are-tagged-critical/63850/1 "2022-09-07T18:36:14Z")

</div>

Hello,  
I want to find all the tags which have their alarms as critical ? I have around 60k tags. Going through all of them would take a lot of time.

Thank You  
Pratik Jain

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 7, 2022, 8:08pm UTC](https://forum.inductiveautomation.com/t/how-can-i-find-alarms-which-are-tagged-critical/63850/2 "2022-09-07T20:08:05Z")

</div>

Are you actually on 8.0.x? If you are on a later version you could use the tag report tool and get a list of all tags with alarms, then run a script on that to get the priority.

---

<div class="post-metadata">

**Author:** ![Paul\_Verbovshchuk](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Paul\_Verbovshchuk](https://forum.inductiveautomation.com/u/Paul_Verbovshchuk)\
**Post date:** [September 7, 2022, 9:05pm UTC](https://forum.inductiveautomation.com/t/how-can-i-find-alarms-which-are-tagged-critical/63850/3 "2022-09-07T21:05:53Z")

</div>

You can browse the tags and filter for priority. For example, the below script will browse for all Boolean tags and look for Critical priority. You can adapt it to your needs.

```auto
criticalAlarmTagList= []
tagList = system.tag.browseTags(dataType = "Boolean", recursive = True)
for tag in tagList:
	tagPath = str(tag)
	tagDefs = system.tag.getAlarmStates(tagPath)
	for tagDef in tagDefs:
		alarmProperties = tagDef.getAlarmProperties()
		for prop in tagDef.getAlarmProperties():
			if prop.property == 'priority':
				if str(prop.value) == "Critical":
					criticalAlarmTagList.append([tag.fullPath])

```

For reference:  
[https://docs.inductiveautomation.com/display/DOC80/Tag+Alarm+Properties](https://docs.inductiveautomation.com/display/DOC80/Tag+Alarm+Properties)
