diff --git a/packages/okta/changelog.yml b/packages/okta/changelog.yml index ded0c2f632c..3c8de853a3c 100644 --- a/packages/okta/changelog.yml +++ b/packages/okta/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "3.4.0" + changes: + - description: Do not remove `event.original` in main ingest pipeline. + type: enhancement + link: https://github.com/elastic/integrations/pull/12127 - version: "3.3.0" changes: - description: Add "preserve_original_event" tag to documents with `event.kind` set to "pipeline_error". diff --git a/packages/okta/data_stream/system/elasticsearch/ingest_pipeline/default.yml b/packages/okta/data_stream/system/elasticsearch/ingest_pipeline/default.yml index 8f70f770080..e98adddad1d 100644 --- a/packages/okta/data_stream/system/elasticsearch/ingest_pipeline/default.yml +++ b/packages/okta/data_stream/system/elasticsearch/ingest_pipeline/default.yml @@ -16,6 +16,10 @@ processors: target_field: event.original if: ctx.event?.original == null ignore_missing: true + - remove: + field: message + if: ctx.event?.original != null + ignore_missing: true - json: field: event.original target_field: json @@ -606,11 +610,6 @@ processors: field: destination.as.organization_name target_field: destination.as.organization.name ignore_missing: true - - remove: - field: event.original - if: "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))" - ignore_failure: true - ignore_missing: true - remove: field: _conf ignore_missing: true diff --git a/packages/okta/data_stream/system/sample_event.json b/packages/okta/data_stream/system/sample_event.json index 1077be7e800..cceeb9c3f38 100644 --- a/packages/okta/data_stream/system/sample_event.json +++ b/packages/okta/data_stream/system/sample_event.json @@ -1,11 +1,11 @@ { "@timestamp": "2020-02-14T20:18:57.718Z", "agent": { - "ephemeral_id": "6ac1caae-4aba-4b61-8408-14b46e15b668", - "id": "c3650180-e3d1-4dad-9094-89c988e721d7", - "name": "docker-fleet-agent", + "ephemeral_id": "79c264cb-1acc-4d23-a584-5733ab7959e0", + "id": "57a230ab-7bcd-4245-b2b7-77c5118fbc4f", + "name": "elastic-agent-64832", "type": "filebeat", - "version": "8.13.0" + "version": "8.15.0" }, "client": { "geo": { @@ -26,16 +26,16 @@ }, "data_stream": { "dataset": "okta.system", - "namespace": "ep", + "namespace": "48163", "type": "logs" }, "ecs": { "version": "8.11.0" }, "elastic_agent": { - "id": "c3650180-e3d1-4dad-9094-89c988e721d7", + "id": "57a230ab-7bcd-4245-b2b7-77c5118fbc4f", "snapshot": false, - "version": "8.13.0" + "version": "8.15.0" }, "event": { "action": "user.session.start", @@ -44,10 +44,10 @@ "authentication", "session" ], - "created": "2024-05-17T05:51:14.737Z", + "created": "2024-12-16T22:31:39.714Z", "dataset": "okta.system", "id": "3aeede38-4f67-11ea-abd3-1f5d113f2546", - "ingested": "2024-05-17T05:51:24Z", + "ingested": "2024-12-16T22:31:40Z", "kind": "event", "original": "{\"actor\":{\"alternateId\":\"xxxxxx@elastic.co\",\"detailEntry\":null,\"displayName\":\"xxxxxx\",\"id\":\"00u1abvz4pYqdM8ms4x6\",\"type\":\"User\"},\"authenticationContext\":{\"authenticationProvider\":null,\"authenticationStep\":0,\"credentialProvider\":null,\"credentialType\":null,\"externalSessionId\":\"102bZDNFfWaQSyEZQuDgWt-uQ\",\"interface\":null,\"issuer\":null},\"client\":{\"device\":\"Computer\",\"geographicalContext\":{\"city\":\"Dublin\",\"country\":\"United States\",\"geolocation\":{\"lat\":37.7201,\"lon\":-121.919},\"postalCode\":\"94568\",\"state\":\"California\"},\"id\":null,\"ipAddress\":\"108.255.197.247\",\"userAgent\":{\"browser\":\"FIREFOX\",\"os\":\"Mac OS X\",\"rawUserAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0\"},\"zone\":\"null\"},\"debugContext\":{\"debugData\":{\"deviceFingerprint\":\"541daf91d15bef64a7e08c946fd9a9d0\",\"requestId\":\"XkcAsWb8WjwDP76xh@1v8wAABp0\",\"requestUri\":\"/api/v1/authn\",\"threatSuspected\":\"false\",\"url\":\"/api/v1/authn?\"}},\"displayMessage\":\"User login to Okta\",\"eventType\":\"user.session.start\",\"legacyEventType\":\"core.user_auth.login_success\",\"outcome\":{\"reason\":null,\"result\":\"SUCCESS\"},\"published\":\"2020-02-14T20:18:57.718Z\",\"request\":{\"ipChain\":[{\"geographicalContext\":{\"city\":\"Dublin\",\"country\":\"United States\",\"geolocation\":{\"lat\":37.7201,\"lon\":-121.919},\"postalCode\":\"94568\",\"state\":\"California\"},\"ip\":\"108.255.197.247\",\"source\":null,\"version\":\"V4\"}]},\"securityContext\":{\"asNumber\":null,\"asOrg\":null,\"domain\":null,\"isProxy\":null,\"isp\":null},\"severity\":\"INFO\",\"target\":null,\"transaction\":{\"detail\":{},\"id\":\"XkcAsWb8WjwDP76xh@1v8wAABp0\",\"type\":\"WEB\"},\"uuid\":\"3aeede38-4f67-11ea-abd3-1f5d113f2546\",\"version\":\"0\"}", "outcome": "success", @@ -163,4 +163,4 @@ }, "version": "72.0." } -} \ No newline at end of file +} diff --git a/packages/okta/manifest.yml b/packages/okta/manifest.yml index 9449ecdc08c..0f3a4dbfe4f 100644 --- a/packages/okta/manifest.yml +++ b/packages/okta/manifest.yml @@ -1,6 +1,6 @@ name: okta title: Okta -version: "3.3.0" +version: "3.4.0" description: Collect and parse event logs from Okta API with Elastic Agent. type: integration format_version: "3.1.0"