Skip to content

Commit

Permalink
Remove the aggregation example
Browse files Browse the repository at this point in the history
Aggregation is more complex than in the example, and the Elastic docs do a better way to explain how to do it.
The example config was not useful at all.
  • Loading branch information
whyscream committed Feb 4, 2024
1 parent e0e8cf5 commit aee93f5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
40 changes: 0 additions & 40 deletions 51-filter-postfix-aggregate.conf

This file was deleted.

12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ The included Logstash config file requires two input fields to exist in input ev

This event format is supported by the Logstash `syslog` input plugin out of the box, but several other plugins produce input that can be adapted fairly easy to produce these fields too. See [ALTERNATIVE INPUTS](ALTERNATIVE-INPUTS.md) for details.

Aggregation filter
-----

A optional aggregation filter is available, that will combine fields from different log lines. The key on which log lines are aggregated is the postfix queue id. For example:

![Alt text](aggregation_example_pic.jpg?raw=true)

In this example, the `postfix_from` field from a `postfix/qmgr` log line is reused, and added to a log line from `postfix/smtp`.

To use the aggregation filter, add `51-filter-postfix-aggregate.conf` to `/etc/logstash/conf.d` or `pipeline` dir for dockerized Logstash.


Tests
-----

Expand Down
Binary file removed aggregation_example_pic.jpg
Binary file not shown.

0 comments on commit aee93f5

Please sign in to comment.