Skip to content

Commit 8143f22

Browse files
authored
[Custom Logs] Implement input parameter ignore_older (#7615)
Expose `ignore_older` Beats option through the integration.
1 parent 4e9185a commit 8143f22

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

packages/log/agent/input/input.yml.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ paths:
33
- {{this}}
44
{{/each}}
55

6+
{{#if ignore_older}}
7+
ignore_older: {{ignore_older}}
8+
{{/if}}
69
data_stream:
710
dataset: {{data_stream.dataset}}
811
{{#if processors.length}}

packages/log/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "2.2.0"
3+
changes:
4+
- description: Expose ignore_older option
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/7615
27
- version: "2.1.0"
38
changes:
49
- description: Add mapping for message field

packages/log/manifest.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Custom Logs
44
description: >-
55
Collect custom logs with Elastic Agent.
66
type: input
7-
version: 2.1.0
7+
version: 2.2.0
88
categories:
99
- custom
1010
- custom_logs
@@ -24,6 +24,14 @@ policy_templates:
2424
description: Path to log files to be collected
2525
type: text
2626
multi: true
27+
- name: ignore_older
28+
type: text
29+
title: Ignore events older than
30+
default: 72h
31+
required: false
32+
show_user: false
33+
description: >-
34+
If this option is specified, events that are older than the specified amount of time are ignored. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
2735
- name: data_stream.dataset
2836
required: true
2937
title: Dataset name

0 commit comments

Comments
 (0)