# Alarm queryStatus activeData Filter by Alarm Pipeline

**URL:** <https://forum.inductiveautomation.com/t/alarm-querystatus-activedata-filter-by-alarm-pipeline/82051>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [November 17, 2023, 3:27pm UTC](https://forum.inductiveautomation.com/t/alarm-querystatus-activedata-filter-by-alarm-pipeline/82051 "2023-11-17T15:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [November 17, 2023, 3:27pm UTC](https://forum.inductiveautomation.com/t/alarm-querystatus-activedata-filter-by-alarm-pipeline/82051/1 "2023-11-17T15:27:59Z")

</div>

How can I use the filters available in `system.alarm.queryStatus()` to filter on alarms that have a specific pipeline in the `activeData` set?

I want to get a list of all active and acknowledged alarms that have a notification pipeline.

Or, would this filtering need to be done after the fact?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [November 17, 2023, 3:37pm UTC](https://forum.inductiveautomation.com/t/alarm-querystatus-activedata-filter-by-alarm-pipeline/82051/2 "2023-11-17T15:37:28Z")

</div>

Easy enough to do the filtering with a for loop after I have the list of active acked alarms.

```auto
def listAckdALMs():
	#get the list of all acknowledged alarms
	alms = system.alarm.queryStatus(state=["ActiveAcked"])
	
	#initialize empty list of sources
	sources = []
	
	#active ack'd alarms count is non-zero
	if alms is not None:
		#for each alarm, get the source path and add it to the list
		for alm in alms:
			if not (alm.activePipeline == ''):
				sources.append(alm.source)
			
	return sources

```
