Skip to content

Commit d494c9a

Browse files
committed
Merge branch 'main' of github.com:elastic/integrations
2 parents 39f6038 + 486b5de commit d494c9a

File tree

7 files changed

+40
-23
lines changed

7 files changed

+40
-23
lines changed

packages/jamf_pro/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: "0.7.0"
3+
changes:
4+
- description: Use the standard request trace file name.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/14369
27
- version: "0.6.0"
38
changes:
49
- description: Tidy variable descriptions and input configuration.

packages/jamf_pro/data_stream/inventory/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource:
44
timeout: {{http_client_timeout}}
55
tracer:
66
enabled: {{enable_request_tracer}}
7-
filename: "../../logs/jamf_pro-versions/http-request-trace-*.ndjson"
7+
filename: "../../logs/cel/http-request-trace-*.ndjson"
88
maxbackups: 5
99
auth:
1010
oauth2:

packages/jamf_pro/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.1.5
22
name: jamf_pro
33
title: "Jamf Pro"
4-
version: "0.6.0"
4+
version: "0.7.0"
55
source:
66
license: "Elastic-2.0"
77
description: "Collect logs and inventory data from Jamf Pro with Elastic Agent"

packages/o365/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.18.6"
3+
changes:
4+
- description: Stricter enforcement of maximum age limits.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/14567
27
- version: "2.18.5"
38
changes:
49
- description: Ensure numeric Yammer IDs are not rendered with E-notation.

packages/o365/data_stream/audit/agent/stream/cel.yml.hbs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ state:
6666
tenant_id: "{{azure_tenant_id}}"
6767
list_contents_start_time: "{{initial_interval}}"
6868
batch_interval: "{{batch_interval}}"
69+
maximum_age: "{{maximum_age}}"
6970
content_types: "{{content_types}}"
7071

7172
redact:
@@ -112,17 +113,16 @@ program: |-
112113
content_type_state[0].content_created_at.as(content_type_state_created_at,
113114
// if saved time inside state is more than 7 days old, then change it to 7 days.
114115
max(
115-
// The 168h (7d) API age limit is expressed as 167h55m to prevent API call
116-
// delay from causing a call to fail.
117-
now - duration("167h55m"),
116+
// Enforce the maximum age limit.
117+
now() - duration(state.base.maximum_age),
118118
content_type_state_created_at.parse_time(time_layout.RFC3339)
119119
).as(state_created_at_calc,
120120
state.url.trim_right("/") + "/api/v1.0/" + state.base.tenant_id + "/activity/feed/subscriptions/content?" +
121121
{
122122
"contentType": [content_type],
123123
"PublisherIdentifier": [state.base.tenant_id],
124-
"startTime": [string(min(now - duration("1s"), state_created_at_calc + duration("1s")))],
125-
"endTime": [string(min(now, state_created_at_calc + batch_interval))],
124+
"startTime": [string(min(now() - duration("1s"), state_created_at_calc + duration("1s")))],
125+
"endTime": [string(min(now(), state_created_at_calc + batch_interval))],
126126
}.format_query()
127127
)
128128
)
@@ -133,8 +133,8 @@ program: |-
133133
{
134134
"contentType": [content_type],
135135
"PublisherIdentifier": [state.base.tenant_id],
136-
"startTime": [string(min(now - duration("1s"), now - duration(state.base.list_contents_start_time)))],
137-
"endTime": [string(min(now, now - duration(state.base.list_contents_start_time) + batch_interval))],
136+
"startTime": [string(min(now() - duration("1s"), now() - duration(state.base.list_contents_start_time)))],
137+
"endTime": [string(min(now(), now() - duration(state.base.list_contents_start_time) + batch_interval))],
138138
}.format_query()
139139
)
140140
)
@@ -147,7 +147,7 @@ program: |-
147147
) ?
148148
// contents exist to consume
149149
list_contents_resp_body.map(l1,
150-
(has(l1.contentExpiration) && l1.contentExpiration.parse_time(time_layout.RFC3339) >= now) ?
150+
(has(l1.contentExpiration) && l1.contentExpiration.parse_time(time_layout.RFC3339) >= now()) ?
151151
request("GET", l1.contentUri).do_request().as(content_resp,
152152
(has(content_resp.StatusCode) && content_resp.StatusCode == 200 && size(content_resp.Body) > 0) ?
153153
content_resp.Body.decode_json().map(content_resp_body,
@@ -158,12 +158,12 @@ program: |-
158158
{
159159
"events_per_content_type": contents,
160160
"content_type": content_type,
161-
// if 'contentCreated' is older than 167h55m, change it to 167h55m.
161+
// if 'contentCreated' is older than the maximum age, change it to the maximum age.
162162
"content_created_at": {"temp": list_contents_resp_body}.collate("temp.contentCreated").max().as(temp_max,
163-
(temp_max.parse_time(time_layout.RFC3339) > now - duration("167h55m")) ?
163+
(temp_max.parse_time(time_layout.RFC3339) > now() - duration(state.base.maximum_age)) ?
164164
temp_max
165165
:
166-
(now - duration("167h55m")).format(time_layout.RFC3339)
166+
(now() - duration(state.base.maximum_age)).format(time_layout.RFC3339)
167167
),
168168
"next_page": (has(list_contents_resp.?Header.NextPageUri) && list_contents_resp.Header.NextPageUri.size() > 0) ?
169169
(list_contents_resp.Header.NextPageUri[0])
@@ -177,18 +177,18 @@ program: |-
177177
has(list_contents_resp.Header.NextPageUri) && list_contents_resp.Header.NextPageUri.size() > 0 ||
178178
has(list_contents_resp.Header.Nextpageuri) && list_contents_resp.Header.Nextpageuri.size() > 0
179179
) || {"temp": list_contents_resp_body}.collate("temp.contentCreated").max().split("T").as(t, t.size() > 1 &&
180-
t[0] != now.format("2006-01-02")),
180+
t[0] != now().format("2006-01-02")),
181181
}
182182
)
183183
:
184184
{
185185
"events_per_content_type": [],
186186
"content_type": content_type,
187187
"content_created_at": {"temp": list_contents_resp_body}.collate("temp.contentCreated").max().as(temp_max,
188-
(temp_max.parse_time(time_layout.RFC3339) > now - duration("167h55m")) ?
188+
(temp_max.parse_time(time_layout.RFC3339) > now() - duration(state.base.maximum_age)) ?
189189
temp_max
190190
:
191-
(now - duration("167h55m")).format(time_layout.RFC3339)
191+
(now() - duration(state.base.maximum_age)).format(time_layout.RFC3339)
192192
),
193193
"next_page": (has(list_contents_resp.?Header.NextPageUri) && list_contents_resp.Header.NextPageUri.size() > 0) ?
194194
(list_contents_resp.Header.NextPageUri[0])
@@ -203,10 +203,10 @@ program: |-
203203
"events_per_content_type": [],
204204
"content_type": content_type,
205205
"content_created_at": {"temp": list_contents_resp_body}.collate("temp.contentCreated").max().as(temp_max,
206-
(temp_max.parse_time(time_layout.RFC3339) > now - duration("167h55m")) ?
206+
(temp_max.parse_time(time_layout.RFC3339) > now() - duration(state.base.maximum_age)) ?
207207
temp_max
208208
:
209-
(now - duration("167h55m")).format(time_layout.RFC3339)
209+
(now() - duration(state.base.maximum_age)).format(time_layout.RFC3339)
210210
),
211211
"next_page": (has(list_contents_resp.?Header.NextPageUri) && list_contents_resp.Header.NextPageUri.size() > 0) ?
212212
(list_contents_resp.Header.NextPageUri[0])
@@ -239,13 +239,13 @@ program: |-
239239
e.content_type == content_type
240240
)[0].content_created_at
241241
:
242-
string(now - duration(state.base.list_contents_start_time)),
242+
string(now() - duration(state.base.list_contents_start_time)),
243243
"next_page": "",
244244
"want_more_content": (
245245
has(list_contents_resp.StatusCode) && has(reqQuery.endTime) &&
246246
list_contents_resp.StatusCode == 200 && reqQuery.endTime.size() > 0 &&
247247
reqQuery.endTime[0].split("T").as(t, t.size() > 0 &&
248-
t[0] != now.format("2006-01-02"))
248+
t[0] != now().format("2006-01-02"))
249249
),
250250
},
251251
]
@@ -261,7 +261,7 @@ program: |-
261261
"content_created_at": (has(state.cursor) && has(state.cursor.content_types_state_as_list)) ?
262262
state.cursor.content_types_state_as_list.filter(e, e.content_type == content_type)[0].content_created_at
263263
:
264-
string(now - duration(state.base.list_contents_start_time)),
264+
string(now() - duration(state.base.list_contents_start_time)),
265265
"next_page": "",
266266
"want_more_content": false,
267267
},

packages/o365/data_stream/audit/manifest.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ streams:
6969
- name: initial_interval
7070
type: text
7171
title: Initial Interval
72-
description: Initial interval for the first API call. Default starts fetching events from 167h55m, i.e., 7 days ago. This value should not be more than this and will be cut to 167h55m if it is. Supports following suffixes - "h" (hour), "m" (minute), "s" (second), "ms" (millisecond), "us" (microsecond), and "ns" (nanosecond)
72+
description: Initial interval for the first API call. Default starts fetching events from 167h55m, i.e., 7 days ago, and must not go further back than that. Supports following suffixes - "h" (hour), "m" (minute), "s" (second), "ms" (millisecond), "us" (microsecond), and "ns" (nanosecond)
7373
show_user: true
7474
required: true
7575
default: 167h55m
@@ -80,6 +80,13 @@ streams:
8080
show_user: true
8181
required: true
8282
default: 1h
83+
- name: maximum_age
84+
type: text
85+
title: Maximum Age
86+
description: A hard maximum age limit for data that can be requested. It defaults to 5 mins less than the API's documented limit but may be shortened as a workaround for errors related to expired data. Supports following suffixes - "h" (hour), "m" (minute), "s" (second), "ms" (millisecond), "us" (microsecond), and "ns" (nanosecond)
87+
show_user: false
88+
required: true
89+
default: 167h55m
8390
- name: resource_ssl
8491
type: yaml
8592
title: Resource SSL Configuration

packages/o365/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: o365
22
title: Microsoft Office 365
3-
version: "2.18.5"
3+
version: "2.18.6"
44
description: Collect logs from Microsoft Office 365 with Elastic Agent.
55
type: integration
66
format_version: "3.2.3"

0 commit comments

Comments
 (0)