Skip to content

Commit 11366f5

Browse files
authored
1 parent 40593b2 commit 11366f5

File tree

5 files changed

+61
-5
lines changed

5 files changed

+61
-5
lines changed

packages/okta/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: "3.0.0"
3+
changes:
4+
- description: Make `okta.target` use dynamic objects instead of flattened.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/11501
27
- version: "2.13.0"
38
changes:
49
- description: Include `grantedScopes`, `grantType`, `clientSecret` and `requestedScopes` fields from debug data.

packages/okta/data_stream/system/elasticsearch/ingest_pipeline/default.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,27 @@ processors:
448448
arr[i].remove("detailEntry");
449449
}
450450
}
451+
452+
// Ensure that all entries in changeDetails.{from,to}.* are strings.
453+
def cd = arr[i].get("changeDetails");
454+
if (cd != null) {
455+
if (cd.from instanceof Map) {
456+
for (def f: cd.from.entrySet()) {
457+
def v = f.getValue();
458+
if (v != null && (v instanceof String)) {
459+
cd.from[f.getKey()] = v.toString()
460+
}
461+
}
462+
}
463+
if (cd.to instanceof Map) {
464+
for (def t: cd.to.entrySet()) {
465+
def v = t.getValue();
466+
if (v != null && (v instanceof String)) {
467+
cd.to[t.getKey()] = v.toString()
468+
}
469+
}
470+
}
471+
}
451472
}
452473
453474
for (def i = 0; i < arr.length; i++) {

packages/okta/data_stream/system/fields/fields.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,33 @@
126126
description: |
127127
The result of the outcome. Must be one of: SUCCESS, FAILURE, SKIPPED, ALLOW, DENY, CHALLENGE, UNKNOWN.
128128
- name: okta.target
129-
type: flattened
130-
description: |
131-
The list of targets.
129+
description: The list of targets.
130+
type: group
131+
fields:
132+
- name: alternate_id
133+
type: keyword
134+
description: The alternate ID of the target.
135+
- name: changeDetails.from.*
136+
type: object
137+
object_type: keyword
138+
object_type_mapping_type: "*"
139+
- name: changeDetails.to.*
140+
type: object
141+
object_type: keyword
142+
object_type_mapping_type: "*"
143+
- name: detailEntry.*
144+
type: object
145+
object_type: keyword
146+
object_type_mapping_type: "*"
147+
- name: display_name
148+
type: keyword
149+
description: The display name of the target.
150+
- name: id
151+
type: keyword
152+
description: The ID of the target.
153+
- name: type
154+
type: keyword
155+
description: The type of target.
132156
- name: okta.transaction
133157
type: group
134158
fields:

packages/okta/docs/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,13 @@ An example event for `system` looks as following:
323323
| okta.security_context.is_proxy | Whether it is a proxy or not. | boolean |
324324
| okta.security_context.isp | The Internet Service Provider. | keyword |
325325
| okta.severity | The severity of the LogEvent. Must be one of DEBUG, INFO, WARN, or ERROR. | keyword |
326-
| okta.target | The list of targets. | flattened |
326+
| okta.target.alternate_id | The alternate ID of the target. | keyword |
327+
| okta.target.changeDetails.from.\* | | object |
328+
| okta.target.changeDetails.to.\* | | object |
329+
| okta.target.detailEntry.\* | | object |
330+
| okta.target.display_name | The display name of the target. | keyword |
331+
| okta.target.id | The ID of the target. | keyword |
332+
| okta.target.type | The type of target. | keyword |
327333
| okta.transaction.detail.request_api_token_id | ID of the API token used in a request. | keyword |
328334
| okta.transaction.id | Identifier of the transaction. | keyword |
329335
| okta.transaction.type | The type of transaction. Must be one of "WEB", "JOB". | keyword |

packages/okta/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: okta
22
title: Okta
3-
version: "2.13.0"
3+
version: "3.0.0"
44
description: Collect and parse event logs from Okta API with Elastic Agent.
55
type: integration
66
format_version: "3.1.0"

0 commit comments

Comments
 (0)