# Filter out some transaction

**URL:** <https://discuss.elastic.co/t/filter-out-some-transaction/125945>\
**Category:** APM\
**Created:** [March 28, 2018, 1:23pm UTC](https://discuss.elastic.co/t/filter-out-some-transaction/125945 "2018-03-28T13:23:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thetortuga](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@Thetortuga](https://discuss.elastic.co/u/Thetortuga)\
**Post date:** [March 28, 2018, 1:23pm UTC](https://discuss.elastic.co/t/filter-out-some-transaction/125945/1 "2018-03-28T13:23:53Z")

</div>

Hi,  
I am using the Node JS APM agent and I am looking for a way to filter out some transaction based on url request.  
Using the `addFilter` method, I tried removing it through an Array.filter but I have an error cannot read property 'length()' of undefined.  
Any of you ever done this ?

Thank you

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [March 28, 2018, 1:45pm UTC](https://discuss.elastic.co/t/filter-out-some-transaction/125945/2 "2018-03-28T13:45:10Z")

</div>

Hi and thanks for trying out Elastic APM 🙂

Try using the ignoreUrls configuration option: [https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#ignore-urls](https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#ignore-urls)

---

<div class="post-metadata">

**Author:** ![Thetortuga](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@Thetortuga](https://discuss.elastic.co/u/Thetortuga)\
**Post date:** [March 29, 2018, 5:42am UTC](https://discuss.elastic.co/t/filter-out-some-transaction/125945/3 "2018-03-29T05:42:57Z")

</div>

How could I miss that ?!  
Thank you and sorry for my blindness

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2018, 1:43am UTC](https://discuss.elastic.co/t/filter-out-some-transaction/125945/4 "2018-04-19T01:43:23Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
