Can I write timeout_code in aggregate filter in a file and put the path in aggregate filter as parameter?

aggregate {
task_id => "%{user_id}"
code => "map['clicks'] ||= 0; map['clicks'] += 1;"
push_map_as_event_on_timeout => true
timeout_task_id_field => "user_id"
timeout => 600 # 10 minutes timeout
timeout_tags => ['_aggregatetimeout']
timeout_code => "event.set('several_clicks', event.get('clicks') > 1)"
}
If possible can anyone give me such example.

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