-
Notifications
You must be signed in to change notification settings - Fork 615
network_traffic: expose configuration options to users #3157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3b2d504
1bf369c
d72435e
29514bd
d168b9a
875c0f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,43 @@ | ||
| type: amqp | ||
| ports: [{{port}}] | ||
| {{#if processes}} | ||
| procs: | ||
| enabled: true | ||
| monitored: | ||
| {{#each processes}} | ||
| - cmdline_grep: {{this}} | ||
| {{/each}} | ||
| {{#if port}} | ||
| ports: | ||
| {{#each port as |p|}} | ||
| - {{p}} | ||
| {{/each}} | ||
| {{/if}} | ||
| {{#if max_body_length}} | ||
| max_body_length: {{max_body_length}} | ||
| {{/if}} | ||
| {{#if parse_headers}} | ||
| parse_headers: {{parse_headers}} | ||
| {{/if}} | ||
| {{#if parse_arguments}} | ||
| parse_arguments: {{parse_arguments}} | ||
| {{/if}} | ||
| {{#if hide_connection_information}} | ||
| hide_connection_information: {{hide_connection_information}} | ||
| {{/if}} | ||
| {{#if send_request}} | ||
| send_request: {{send_request}} | ||
| {{/if}} | ||
| {{#if send_response}} | ||
| send_response: {{send_response}} | ||
| {{/if}} | ||
| {{#if keep_null}} | ||
| keep_null: {{keep_null}} | ||
| {{/if}} | ||
| {{#if transaction_timeout}} | ||
| transaction_timeout: {{transaction_timeout}} | ||
| {{/if}} | ||
| {{#if processors}} | ||
| processors: | ||
| {{processors}} | ||
| {{/if}} | ||
| {{#if tags}} | ||
| tags: | ||
| {{#each tags as |tag|}} | ||
| - {{tag}} | ||
| {{/each}} | ||
| {{/if}} | ||
| {{#if interface}} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add support for custom processors, similar to here: |
||
| interface: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,15 +5,101 @@ streams: | |
| - input: packet | ||
| vars: | ||
| - name: port | ||
| type: integer | ||
| # currently the Kibana UI doesn't support multi inputs | ||
| # that are numeric, you get "Error: r.toLowerCase is not a function" | ||
| # multi: true | ||
| title: Port | ||
| # so map this as text | ||
| type: text | ||
| multi: true | ||
| title: Ports | ||
| required: true | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it does not support multi, it might be wise that we change this to type
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will that get around the kibana issue?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have tried
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that was one of the many already tried.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using Generated policy: diff --git a/packages/network_traffic/data_stream/dhcpv4/agent/stream/dhcpv4.yml.hbs b/packages/network_traffic/data_stream/dhcpv4/agent/stream/dhcpv4.yml.hbs
index 3856fc4d9..dba4a3a7b 100644
--- a/packages/network_traffic/data_stream/dhcpv4/agent/stream/dhcpv4.yml.hbs
+++ b/packages/network_traffic/data_stream/dhcpv4/agent/stream/dhcpv4.yml.hbs
@@ -1,5 +1,12 @@
type: dhcpv4
-ports: [{{port}}]
+
+{{#if port}}
+ports:
+{{#each port as |p|}}
+ - {{p}}
+{{/each}}
+{{/if}}
+
{{#if keep_null}}
keep_null: {{keep_null}}
{{/if}}
diff --git a/packages/network_traffic/data_stream/dhcpv4/manifest.yml b/packages/network_traffic/data_stream/dhcpv4/manifest.yml
index 8e5ff7b20..646b0cc19 100644
--- a/packages/network_traffic/data_stream/dhcpv4/manifest.yml
+++ b/packages/network_traffic/data_stream/dhcpv4/manifest.yml
@@ -5,14 +5,14 @@ streams:
- input: packet
vars:
- name: port
- type: integer
+ type: text
# currently the Kibana UI doesn't support multi inputs
# that are numeric, you get "Error: r.toLowerCase is not a function"
- # multi: true
- title: Port
+ multi: true
+ title: Ports
required: true
show_user: true
- default: 67 # default: [67, 68]
+ default: [67, 68]
- name: keep_null
type: bool
title: Keep Null |
||
| show_user: true | ||
| default: 5672 | ||
| # default: [5672] | ||
| default: [5672] | ||
| - name: max_body_length | ||
| type: integer | ||
| title: Max Body Length | ||
| description: |- | ||
| Truncate messages that are published and avoid huge messages being | ||
| indexed. | ||
| Default: 1000 | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: parse_headers | ||
| type: bool | ||
| title: Parse Headers | ||
| description: |- | ||
| Hide the header fields in header frames. | ||
| Default: false | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: parse_arguments | ||
| type: bool | ||
| title: Parse Arguments | ||
| description: |- | ||
| Hide the additional arguments of method frames. | ||
| Default: false | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: hide_connection_information | ||
| type: bool | ||
| title: Hide Connection Information | ||
| description: |- | ||
| Hide all methods relative to connection negotiation between server and | ||
| client. | ||
| Default: true | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: send_request | ||
| type: bool | ||
| title: Send Request | ||
| description: |- | ||
| If this option is enabled, the raw message of the request (`request` field) | ||
| is sent to Elasticsearch. The default is false. | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: send_response | ||
| type: bool | ||
| title: Send Response | ||
| description: |- | ||
| If this option is enabled, the raw message of the response (`response` | ||
| field) is sent to Elasticsearch. The default is false. | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: keep_null | ||
| type: bool | ||
| title: Keep Null | ||
| description: Set to true to publish fields with null values in events. | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: transaction_timeout | ||
| type: text | ||
| title: Transaction Timeout | ||
| description: |- | ||
| Transaction timeout. Expired transactions will no longer be correlated to | ||
| incoming responses, but sent to Elasticsearch immediately. | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: processors | ||
| type: yaml | ||
| title: Processors | ||
| description: Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details. | ||
| show_user: false | ||
| multi: false | ||
| required: false | ||
| - name: tags | ||
| type: text | ||
| title: Tags | ||
| description: Tags to include in the published event. | ||
| show_user: false | ||
| multi: true | ||
| required: false | ||
| title: AMQP | ||
| description: Capture AMQP Traffic | ||
| template_path: amqp.yml.hbs | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| type: dhcpv4 | ||
| {{#if port}} | ||
| ports: | ||
| {{#each port as |p|}} | ||
| - {{p}} | ||
| {{/each}} | ||
| {{/if}} | ||
| {{#if keep_null}} | ||
| keep_null: {{keep_null}} | ||
| {{/if}} | ||
| {{#if processors}} | ||
| processors: | ||
| {{processors}} | ||
| {{/if}} | ||
| {{#if tags}} | ||
| tags: | ||
| {{#each tags as |tag|}} | ||
| - {{tag}} | ||
| {{/each}} | ||
| {{/if}} | ||
| {{#if interface}} | ||
| interface: | ||
| {{#if (contains ".pcap" interface)}} | ||
| file: {{interface}} | ||
| {{else}} | ||
| device: {{interface}} | ||
| {{/if}} | ||
| {{/if}} |

Uh oh!
There was an error while loading. Please reload this page.