Skip to content
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/forgerock/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.21.1"
changes:
- description: Map the duration `forgerock.response.elapsedTime` as a long not a date.
type: bugfix
link: https://github.com/elastic/integrations/pull/13959
- version: "1.21.0"
changes:
- description: Update Kibana constraint to support 9.0.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ processors:
ignore_failure: true
- convert:
field: forgerock.response.elapsedTime
target_field: event.duration
type: long
ignore_failure: true
- set:
field: event.duration
copy_from: forgerock.response.elapsedTime
ignore_empty_value: true
- script:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

milliseconds to nanoseconds conversion logic

lang: painless
if: ctx.event?.duration != null && ctx.forgerock?.response?.elapsedTimeUnits == 'MILLISECONDS'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
type: keyword
description: The responses's username.
- name: forgerock.response.elapsedTime
type: date
type: long
description: Time to execute event.
- name: forgerock.response.elapsedTimeUnits
type: keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ processors:
ignore_failure: true
- convert:
field: forgerock.response.elapsedTime
target_field: event.duration
type: long
ignore_failure: true
- set:
field: event.duration
copy_from: forgerock.response.elapsedTime
ignore_empty_value: true
- script:
lang: painless
if: ctx.event?.duration != null && ctx.forgerock?.response?.elapsedTimeUnits == 'MILLISECONDS'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
type: keyword
description: The protocol associated with the request; REST or PLL.
- name: forgerock.response.elapsedTime
type: date
type: long
description: Time to execute event.
- name: forgerock.response.elapsedTimeUnits
type: keyword
Expand Down
4 changes: 2 additions & 2 deletions packages/forgerock/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ An example event for `am_access` looks as following:
| forgerock.response.detail.scope | The responses's scope. | keyword |
| forgerock.response.detail.token_type | The responses's token type. | keyword |
| forgerock.response.detail.username | The responses's username. | keyword |
| forgerock.response.elapsedTime | Time to execute event. | date |
| forgerock.response.elapsedTime | Time to execute event. | long |
| forgerock.response.elapsedTimeUnits | Units for response time. | keyword |
| forgerock.response.status | Status indicator, usually SUCCESS/SUCCESSFUL or FAIL/FAILED. | keyword |
| forgerock.roles | IDM roles associated with the request. | keyword |
Expand Down Expand Up @@ -618,7 +618,7 @@ An example event for `idm_access` looks as following:
| forgerock.level | The log level. | keyword |
| forgerock.request.operation | The request operation. | keyword |
| forgerock.request.protocol | The protocol associated with the request; REST or PLL. | keyword |
| forgerock.response.elapsedTime | Time to execute event. | date |
| forgerock.response.elapsedTime | Time to execute event. | long |
| forgerock.response.elapsedTimeUnits | Units for response time. | keyword |
| forgerock.response.status | Status indicator, usually SUCCESS/SUCCESSFUL or FAIL/FAILED. | keyword |
| forgerock.roles | IDM roles associated with the request. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/forgerock/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: forgerock
title: "ForgeRock"
version: "1.21.0"
version: "1.21.1"
description: Collect audit logs from ForgeRock with Elastic Agent.
type: integration
format_version: "3.0.2"
Expand Down