# Is it possible to record the transaction with sample rate as well, but not all of them?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-record-the-transaction-with-sample-rate-as-well-but-not-all-of-them/183800>\
**Category:** APM\
**Created:** [June 1, 2019, 2:08am UTC](https://discuss.elastic.co/t/is-it-possible-to-record-the-transaction-with-sample-rate-as-well-but-not-all-of-them/183800 "2019-06-01T02:08:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [July 2, 2019, 2:46am UTC](https://discuss.elastic.co/t/is-it-possible-to-record-the-transaction-with-sample-rate-as-well-but-not-all-of-them/183800/4 "2019-07-02T02:46:17Z")

</div>

Sorry for the delay in replying. There's a slight error in your syntax. Processors should be a YAML list; you're missing a "-" before drop\_event. It should look like this:

```bash
processors:
 - drop_event:
     when:
       equals:
         transaction.sampled: false

```

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-to-record-the-transaction-with-sample-rate-as-well-but-not-all-of-them/183800)._
