# Logstash: How to pass value from one Aggregate Filter Task ID to another

**URL:** <https://discuss.elastic.co/t/logstash-how-to-pass-value-from-one-aggregate-filter-task-id-to-another/245921>\
**Category:** Logstash\
**Created:** [August 21, 2020, 1:06pm UTC](https://discuss.elastic.co/t/logstash-how-to-pass-value-from-one-aggregate-filter-task-id-to-another/245921 "2020-08-21T13:06:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastersmit](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@mastersmit](https://discuss.elastic.co/u/mastersmit)\
**Post date:** [August 21, 2020, 1:06pm UTC](https://discuss.elastic.co/t/logstash-how-to-pass-value-from-one-aggregate-filter-task-id-to-another/245921/1 "2020-08-21T13:06:48Z")

</div>

I have a requirement in which I need flow data from one aggreage filter of id `different_%{customer}` to another `%{traceid}`

`logstash.conf` code snippet:

```auto
aggregate {
          task_id => "different_%{customer}"
          code => "
            event.set('it_works', 'phase execute remittance req body')
            event.set('transactionAmount', map['transactionAmount'])"
          map_action => "update"
          end_of_task => true
          timeout => 120
      }

      aggregate {
          task_id => "%{traceid}"
          code => "
            event.set('it_works', 'phase execute remittance another req body')
            map['id'] = event.get('id')
            map['transactionAmount'] = event.get('transactionAmount')"
          map_action => "update"
      }

```

Even `phase execute remittance req body` is not saved. Unable to identify where it is going wrong.

---

<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:** [September 18, 2020, 1:07pm UTC](https://discuss.elastic.co/t/logstash-how-to-pass-value-from-one-aggregate-filter-task-id-to-another/245921/2 "2020-09-18T13:07:00Z")

</div>

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