# Aggregate inactivity\_timeout must be lower than timeout error

**URL:** <https://discuss.elastic.co/t/aggregate-inactivity-timeout-must-be-lower-than-timeout-error/108697>\
**Category:** Logstash\
**Created:** [November 22, 2017, 11:19am UTC](https://discuss.elastic.co/t/aggregate-inactivity-timeout-must-be-lower-than-timeout-error/108697 "2017-11-22T11:19:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coda/32/9930_2.png) [@coda](https://discuss.elastic.co/u/coda)\
**Post date:** [November 22, 2017, 11:19am UTC](https://discuss.elastic.co/t/aggregate-inactivity-timeout-must-be-lower-than-timeout-error/108697/1 "2017-11-22T11:19:55Z")

</div>

Hi!

Could someone please help me on this? The following aggregate:

```
aggregate {
    task_id => "%{postfix_queueid}"
    code => "
        if event.get('@timestamp')
            map['@timestamp'] = event.get('@timestamp')
        end
        map['postfix_to_list'] ||= []
        map['tags'] ||= []
        map['events'] ||= []
        if event.get('postfix_to')
            map['postfix_to_list'] << event.get('postfix_to')
        end
        map['events'] << event.to_hash
    "
    push_map_as_event_on_timeout => true
    timeout => 300
    inactivity_timeout => 15
    timeout_code => "
         event.set('postfix_to', event.get('postfix_to_list'))
    "
    timeout_tags => ['aggregated']
}

```

is throwing a " **ConfigurationError: Pipeline aborted due to error {:exception=\>#\<LogStash::ConfigurationError: Aggregate plugin: For task\_id pattern %{postfix\_queueid}, inactivity\_timeout must be lower than timeout\>,....... }**"

If I remove the inactivity\_timeout variable, it starts working again, and I can't understand what's wrong..

Thanks in advance!!

---

<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:** [December 20, 2017, 11:19am UTC](https://discuss.elastic.co/t/aggregate-inactivity-timeout-must-be-lower-than-timeout-error/108697/2 "2017-12-20T11:19:57Z")

</div>

Closed on December 20, 2017, 11:19am UTC

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