Skip to content
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

[Kibana] Add condition configuration for Kibana logs and metrics #5359

Merged
merged 4 commits into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/kibana/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.3.0-preview1"
changes:
- description: Add `condition` configuration for logs and metrics
type: enhancement
link: https://github.com/elastic/integrations/issues/5359
- version: "2.2.1-preview1"
changes:
- description: Add period variable to define polling frequency
Expand Down
3 changes: 3 additions & 0 deletions packages/kibana/data_stream/audit/agent/stream/log.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ exclude_files: [".gz$"]
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ period: {{period}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}

Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ period: {{period}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}

{{#if condition}}
condition: {{ condition }}
{{/if}}
3 changes: 3 additions & 0 deletions packages/kibana/data_stream/log/agent/stream/log.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ exclude_files: [".gz$"]
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ period: {{period}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}

{{#if condition}}
condition: {{ condition }}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ period: {{period}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}

{{#if condition}}
condition: {{ condition }}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ period: {{period}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}

{{#if condition}}
condition: {{ condition }}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ period: {{period}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}
17 changes: 16 additions & 1 deletion packages/kibana/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: kibana
title: Kibana
version: 2.2.1-preview1
version: 2.3.0-preview1
description: Collect logs and metrics from Kibana with Elastic Agent.
type: integration
icons:
Expand All @@ -21,6 +21,14 @@ policy_templates:
- type: logfile
title: "Collect Kibana logs"
description: "Collecting audit and application logs from Kibana instances"
vars:
- name: condition
title: Condition
description: Condition to filter when to collect this input
type: text
multi: false
required: false
show_user: false
- type: kibana/metrics
title: Collect Kibana metrics
description: Collecting stats, status and alert metrics from Kibana instances
Expand Down Expand Up @@ -58,5 +66,12 @@ policy_templates:
#certificate_authorities: ["/etc/ca.crt"]
#certificate: "/etc/client.crt"
#key: "/etc/client.key"
- name: condition
title: Condition
description: Condition to filter when to collect this input
type: text
multi: false
required: false
show_user: false
owner:
github: elastic/infra-monitoring-ui