Skip to content

Commit

Permalink
[Apache] Add condition support to logs and metrics (#7372)
Browse files Browse the repository at this point in the history
* apache condition support

* improve condition descriptions
  • Loading branch information
BenB196 committed Sep 4, 2023
1 parent 9a3b520 commit 8aac25c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/apache/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.15.0"
changes:
- description: Add ability to set condition for logs and metrics.
type: enhancement
link: https://github.com/elastic/integrations/pull/7372
- version: "1.14.0"
changes:
- description: Enable time series data streams for the metrics datasets. This dramatically reduces storage for metrics and is expected to progressively improve query performance. For more details, see https://www.elastic.co/guide/en/elasticsearch/reference/current/tsds.html.
Expand Down
3 changes: 3 additions & 0 deletions packages/apache/data_stream/access/agent/stream/log.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ exclude_files: [".gz$"]
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}
3 changes: 3 additions & 0 deletions packages/apache/data_stream/error/agent/stream/log.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ processors:
- add_locale: ~
{{#if processors}}
{{processors}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ period: {{period}}
{{#if server_status_path}}
server_status_path: {{server_status_path}}
{{/if}}
{{#if condition}}
condition: {{ condition }}
{{/if}}
17 changes: 16 additions & 1 deletion packages/apache/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: apache
title: Apache HTTP Server
version: "1.14.0"
version: "1.15.0"
license: basic
source:
license: Elastic-2.0
Expand Down Expand Up @@ -36,6 +36,14 @@ policy_templates:
- type: logfile
title: Collect logs from Apache instances
description: Collecting Apache access and error logs
vars:
- name: condition
title: Condition
description: Condition to filter when to collect this input. See [Dynamic Input Configuration](https://www.elastic.co/guide/en/fleet/current/dynamic-input-configuration.html) for details.
type: text
multi: false
required: false
show_user: false
- type: httpjson
title: Collect logs from third-party REST API (experimental)
description: Collect logs from third-party REST API (experimental)
Expand Down Expand Up @@ -107,5 +115,12 @@ policy_templates:
show_user: true
default:
- http://127.0.0.1
- name: condition
title: Condition
description: Condition to filter when to collect this input. See [Dynamic Input Configuration](https://www.elastic.co/guide/en/fleet/current/dynamic-input-configuration.html) for details.
type: text
multi: false
required: false
show_user: false
owner:
github: elastic/obs-infraobs-integrations

0 comments on commit 8aac25c

Please sign in to comment.