:plugin: collate :type: filter /////////////////////////////////////////// START - GENERATED VARIABLES, DO NOT EDIT! /////////////////////////////////////////// :version: %VERSION% :release_date: %RELEASE_DATE% :changelog_url: %CHANGELOG_URL% :include_path: ../../../../logstash/docs/include /////////////////////////////////////////// END - GENERATED VARIABLES, DO NOT EDIT! /////////////////////////////////////////// [id="plugins-{type}-{plugin}"] === Collate filter plugin include::{include_path}/plugin_header.asciidoc[] ==== Description Collate events by time or count. The original goal of this filter was to merge the logs from different sources by the time of log, for example, in real-time log collection, logs can be collated by amount of 3000 logs or can be collated in 30 seconds. The config looks like this: [source,ruby] filter { collate { count => 3000 interval => "30s" order => "ascending" } } [id="plugins-{type}s-{plugin}-options"] ==== Collate Filter Configuration Options This plugin supports the following configuration options plus the <> described later. [cols="<,<,<",options="header",] |======================================================================= |Setting |Input type|Required | <> |<>|No | <> |<>|No | <> |<>, one of `["ascending", "descending"]`|No |======================================================================= Also see <> for a list of options supported by all filter plugins.   [id="plugins-{type}s-{plugin}-count"] ===== `count` * Value type is <> * Default value is `1000` How many logs should be collated. [id="plugins-{type}s-{plugin}-interval"] ===== `interval` * Value type is <> * Default value is `"1m"` The `interval` is the time window which how long the logs should be collated. (default `1m`) [id="plugins-{type}s-{plugin}-order"] ===== `order` * Value can be any of: `ascending`, `descending` * Default value is `"ascending"` The `order` collated events should appear in. [id="plugins-{type}s-{plugin}-common-options"] include::{include_path}/{type}.asciidoc[]