# filterAlarm alarmEvent.get('source') doesn't work

**URL:** <https://forum.inductiveautomation.com/t/filteralarm-alarmevent-get-source-doesnt-work/25837>\
**Category:** Ignition\
**Created:** [June 14, 2019, 4:38pm UTC](https://forum.inductiveautomation.com/t/filteralarm-alarmevent-get-source-doesnt-work/25837 "2019-06-14T16:38:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyrel.parker](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tyrel.parker](https://forum.inductiveautomation.com/u/tyrel.parker)\
**Post date:** [June 14, 2019, 4:38pm UTC](https://forum.inductiveautomation.com/t/filteralarm-alarmevent-get-source-doesnt-work/25837/1 "2019-06-14T16:38:59Z")

</div>

Ultimately I would like to filter out certain alarms that contain a certain string within their source, but I can’t seem to target the source component of the alarm and I don’t know why.

```
source = alarmEvent.get('source')
system.gui.warningBox(source)

```

returns no warning boxes. However:

```
source = alarmEvent.get('name')
system.gui.warningBox(source)

```

will return warning boxes every second. Why can’t I target the source of the alarm?
