Skip to content

Commit

Permalink
[netflow] add workers option (#11025)
Browse files Browse the repository at this point in the history
This exposes the `workers` config option introduced in netflow 
filebeat input and is available in `>=8.16.0`.

---------

Co-authored-by: Andrew Kroh <[email protected]>
  • Loading branch information
pkoutsovasilis and andrewkroh authored Nov 19, 2024
1 parent d74bd10 commit 69fd5a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/netflow/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.20.0"
changes:
- description: Add a new configuration option to control the number of NetFlow workers. This allows for the allocation of additional compute resources to read and decode NetFlow packets. The feature only takes effect under Elastic Agent 8.16 or greater.
type: enhancement
link: https://github.com/elastic/integrations/pull/11025
- version: "2.19.1"
changes:
- description: Use triple-brace Mustache templating when referencing variables in ingest pipelines.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
protocols: [v1, v5, v6, v7, v8, v9, ipfix]
host: '{{host}}:{{port}}'
max_message_size: '{{max_message_size}}'
workers: {{workers}}
expiration_timeout: '{{expiration_timeout}}'
queue_size: {{queue_size}}
{{#if timeout}}
Expand Down
8 changes: 8 additions & 0 deletions packages/netflow/data_stream/log/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ streams:
multi: true
required: false
show_user: true
- name: workers
type: integer
title: Number of Workers
description: The number of workers to read and decode concurrently netflow packets. Note that in order to maximize the performance gains of multiple workers it is highly advised to switch the corresponding output to the `throughput` preset.
multi: false
required: false
show_user: false
default: 1
- name: queue_size
type: integer
title: Maximum number of packets that can be queued for processing
Expand Down
2 changes: 1 addition & 1 deletion packages/netflow/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.3"
name: netflow
title: NetFlow Records
version: "2.19.1"
version: "2.20.0"
description: Collect flow records from NetFlow and IPFIX exporters with Elastic Agent.
type: integration
categories:
Expand Down

0 comments on commit 69fd5a2

Please sign in to comment.