Skip to content

[zscaler_zia] Update Event Type and Add Event Outcome - #13894

Merged
efd6 merged 5 commits into
elastic:mainfrom
mohitjha-elastic:zscaler_zia-3.11.0
May 14, 2025
Merged

[zscaler_zia] Update Event Type and Add Event Outcome#13894
efd6 merged 5 commits into
elastic:mainfrom
mohitjha-elastic:zscaler_zia-3.11.0

Conversation

@mohitjha-elastic

@mohitjha-elastic mohitjha-elastic commented May 13, 2025

Copy link
Copy Markdown
Contributor

Proposed Commit Message

zscaler_zia: improve event.type and event.outcome mapping

Previously, the event.type ECS field was mapped to 'info'. It has now
been updated to 'access', as this more accurately reflects the nature
of the events. Additionally, the event.outcome ECS field is now being
set based on the existing event.action field in the pipeline, allowing
us to determine whether access was granted or denied.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

How to test this PR locally

Clone integrations repo.
Install the elastic package locally.
Start the elastic stack using the elastic package.
Move to integrations/packages/zscaler_zia directory.
Run the following command to run tests.
elastic-package test -v

Related issues

@mohitjha-elastic mohitjha-elastic self-assigned this May 13, 2025
@mohitjha-elastic
mohitjha-elastic requested a review from a team as a code owner May 13, 2025 09:43
@mohitjha-elastic mohitjha-elastic added enhancement New feature or request Integration:zscaler_zia Zscaler Internet Access Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] Team:SDE-Crest Crest developers on the Security Integrations team [elastic/sit-crest-contractors] labels May 13, 2025
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@elastic-vault-github-plugin-prod

elastic-vault-github-plugin-prod Bot commented May 13, 2025

Copy link
Copy Markdown
Contributor

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@efd6 efd6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested commit message

zscaler_zia: improve event.type and event.outcome mapping

Previously, the event.type ECS field was mapped to 'info'. It has now
been updated to 'access', as this more accurately reflects the nature
of the events. Additionally, the event.outcome ECS field is now being
set based on the existing event.action field in the pipeline, allowing
us to determine whether access was granted or denied.

(no need to mention tests because no new tests are added)

Comment on lines +134 to +138
- set:
tag: set_event_outcome_failure
field: event.outcome
value: failure
if: ctx.event?.action == 'denied' || ctx.event?.action == 'blocked'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- set:
tag: set_event_outcome_failure
field: event.outcome
value: failure
if: ctx.event?.action == 'denied' || ctx.event?.action == 'blocked'
- set:
tag: set_event_outcome_failure
field: event.outcome
value: failure
if: ctx.event?.action == 'denied' || ctx.event?.action == 'blocked'
- set:
tag: set_event_outcome_unknown
field: event.outcome
value: unknown
if: ctx.event?.outcome == null
Add event.outcome as unknown when this is not set as success or failure.
@mohitjha-elastic
mohitjha-elastic requested a review from efd6 May 14, 2025 09:36
@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @mohitjha-elastic

@efd6
efd6 merged commit 939bc8a into elastic:main May 14, 2025
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package zscaler_zia - 3.11.0 containing this change is available at https://epr.elastic.co/package/zscaler_zia/3.11.0/

@mohitjha-elastic
mohitjha-elastic deleted the zscaler_zia-3.11.0 branch May 15, 2025 07:22
anupratharamachandran pushed a commit to anupratharamachandran/integrations that referenced this pull request Jun 2, 2025
…3894)

Previously, the event.type ECS field was mapped to 'info'. It has now
been updated to 'access', as this more accurately reflects the nature
of the events. Additionally, the event.outcome ECS field is now being
set based on the existing event.action field in the pipeline, allowing
us to determine whether access was granted or denied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:zscaler_zia Zscaler Internet Access Team:SDE-Crest Crest developers on the Security Integrations team [elastic/sit-crest-contractors] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

3 participants