Skip to content

[BeyondTrust EPM][Audit] Add Audit data stream#18635

Merged
efd6 merged 4 commits into
elastic:feature/beyondtrust_epm-0.1.0from
akshraj-crest:datastream-audit
May 11, 2026
Merged

[BeyondTrust EPM][Audit] Add Audit data stream#18635
efd6 merged 4 commits into
elastic:feature/beyondtrust_epm-0.1.0from
akshraj-crest:datastream-audit

Conversation

@akshraj-crest

@akshraj-crest akshraj-crest commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Proposed commit message

The initial release includes audit data stream, associated dashboard
and visualizations.

BeyondTrust EPM fields are mapped to their corresponding ECS fields where possible.

Test samples were derived from live data samples, which were subsequently
sanitized.

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.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

How to test this PR locally

To test the BeyondTrust EPM package:

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

elastic-package test

Run asset tests for the package
2026/04/24 17:25:32  INFO elastic-package v0.122.0 version-hash 0d1afec6 (build time: 2026-03-31T23:02:11+05:30)
2026/04/24 17:25:32  INFO elastic-stack: 8.18.0
--- Test results for package: beyondtrust_epm - START ---
╭─────────────────┬─────────────┬───────────┬──────────────────────────────────────────────────────────────────────────┬────────┬──────────────╮
│ PACKAGE         │ DATA STREAM │ TEST TYPE │ TEST NAME                                                                │ RESULT │ TIME ELAPSED │
├─────────────────┼─────────────┼───────────┼──────────────────────────────────────────────────────────────────────────┼────────┼──────────────┤
│ beyondtrust_epm │             │ asset     │ dashboard beyondtrust_epm-20f84912-15d7-4fa5-94eb-a2c945a6d477 is loaded │ PASS   │       1.23µs │
│ beyondtrust_epm │ audit       │ asset     │ index_template logs-beyondtrust_epm.audit is loaded                      │ PASS   │        326ns │
│ beyondtrust_epm │ audit       │ asset     │ ingest_pipeline logs-beyondtrust_epm.audit-0.1.0 is loaded               │ PASS   │        108ns │
╰─────────────────┴─────────────┴───────────┴──────────────────────────────────────────────────────────────────────────┴────────┴──────────────╯
--- Test results for package: beyondtrust_epm - END   ---
Done
Run pipeline tests for the package
2026/04/24 17:25:37  INFO elastic-package v0.122.0 version-hash 0d1afec6 (build time: 2026-03-31T23:02:11+05:30)
2026/04/24 17:25:37  INFO elastic-stack: 8.18.0
--- Test results for package: beyondtrust_epm - START ---
╭─────────────────┬─────────────┬───────────┬───────────────────────────────────────────┬────────┬──────────────╮
│ PACKAGE         │ DATA STREAM │ TEST TYPE │ TEST NAME                                 │ RESULT │ TIME ELAPSED │
├─────────────────┼─────────────┼───────────┼───────────────────────────────────────────┼────────┼──────────────┤
│ beyondtrust_epm │ audit       │ pipeline  │ (ingest pipeline warnings test-audit.log) │ PASS   │ 279.070633ms │
│ beyondtrust_epm │ audit       │ pipeline  │ test-audit.log                            │ PASS   │  235.23062ms │
╰─────────────────┴─────────────┴───────────┴───────────────────────────────────────────┴────────┴──────────────╯
--- Test results for package: beyondtrust_epm - END   ---
Done
Run policy tests for the package
2026/04/24 17:25:38  INFO elastic-package v0.122.0 version-hash 0d1afec6 (build time: 2026-03-31T23:02:11+05:30)
2026/04/24 17:25:38  INFO elastic-stack: 8.18.0
--- Test results for package: beyondtrust_epm - START ---
No test results
--- Test results for package: beyondtrust_epm - END   ---
Done
Run script tests for the package
PKG beyondtrust_epm
[no test files]
--- Test results for package: beyondtrust_epm - START ---
No test results
--- Test results for package: beyondtrust_epm - END   ---
Done
Run static tests for the package
2026/04/24 17:25:38  INFO elastic-package v0.122.0 version-hash 0d1afec6 (build time: 2026-03-31T23:02:11+05:30)
--- Test results for package: beyondtrust_epm - START ---
╭─────────────────┬─────────────┬───────────┬──────────────────────────┬────────┬──────────────╮
│ PACKAGE         │ DATA STREAM │ TEST TYPE │ TEST NAME                │ RESULT │ TIME ELAPSED │
├─────────────────┼─────────────┼───────────┼──────────────────────────┼────────┼──────────────┤
│ beyondtrust_epm │ audit       │ static    │ Verify sample_event.json │ PASS   │ 124.855728ms │
╰─────────────────┴─────────────┴───────────┴──────────────────────────┴────────┴──────────────╯
--- Test results for package: beyondtrust_epm - END   ---
Done
Run system tests for the package
2026/04/24 17:25:38  INFO elastic-package v0.122.0 version-hash 0d1afec6 (build time: 2026-03-31T23:02:11+05:30)
2026/04/24 17:25:38  INFO elastic-stack: 8.18.0
2026/04/24 17:25:38  INFO Installing package...
2026/04/24 17:25:50  INFO Running test for data_stream "audit" with configuration 'cel'
2026/04/24 17:26:00  INFO Setting up independent Elastic Agent...
2026/04/24 17:26:07  INFO Setting up service...
2026/04/24 17:26:29  INFO Validating test case...
2026/04/24 17:26:30  INFO Tearing down service...
2026/04/24 17:26:30  INFO Write container logs to file: /root/integrations/build/container-logs/beyondtrust_epm-1777031790812298170.log
2026/04/24 17:26:32  INFO Tearing down agent...
2026/04/24 17:26:32  INFO Write container logs to file: /root/integrations/build/container-logs/elastic-agent-1777031792597731461.log
2026/04/24 17:26:40  INFO Running test for data_stream "audit" with configuration 'aws'
2026/04/24 17:26:49  INFO Setting up independent Elastic Agent...
2026/04/24 17:26:57  INFO Setting up service...
2026/04/24 17:30:26  INFO Validating test case...
2026/04/24 17:30:27  INFO Tearing down service...
2026/04/24 17:33:18  INFO Write container logs to file: /root/integrations/build/container-logs/beyondtrust_epm-1777032198731825610.log
2026/04/24 17:33:20  INFO Tearing down agent...
2026/04/24 17:33:20  INFO Write container logs to file: /root/integrations/build/container-logs/elastic-agent-1777032200682549123.log
2026/04/24 17:33:28  INFO Uninstalling package...
--- Test results for package: beyondtrust_epm - START ---
╭─────────────────┬─────────────┬───────────┬───────────┬────────┬─────────────────╮
│ PACKAGE         │ DATA STREAM │ TEST TYPE │ TEST NAME │ RESULT │    TIME ELAPSED │
├─────────────────┼─────────────┼───────────┼───────────┼────────┼─────────────────┤
│ beyondtrust_epm │ audit       │ system    │ aws       │ PASS   │ 3m46.626307533s │
│ beyondtrust_epm │ audit       │ system    │ cel       │ PASS   │   39.609447875s │
╰─────────────────┴─────────────┴───────────┴───────────┴────────┴─────────────────╯
--- Test results for package: beyondtrust_epm - END   ---
Done

Related issues

Screenshots

image (2) image (3)

Implementation Details

API Documentation: https://docs.beyondtrust.com/epm-wm/v25.1/reference/get_v3-activityaudits-details

Default Config Values:

  • initial_interval: 24h
  • interval: 5m
  • page_size: 200

@akshraj-crest akshraj-crest requested a review from a team as a code owner April 24, 2026 12:31
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Reviewers

Buildkite won't run for external contributors automatically; you need to add a comment:

  • /test : will kick off a build in Buildkite.

NOTE: https://github.com/elastic/integrations/blob/main/.buildkite/pull-requests.json contains all those details.

Comment thread packages/beyondtrust_epm/data_stream/audit/agent/stream/cel.yml.hbs Outdated
Comment thread packages/beyondtrust_epm/changelog.yml
Comment thread packages/beyondtrust_epm/_dev/deploy/tf/main.tf Outdated
@andrewkroh andrewkroh added the documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. label Apr 24, 2026
@akshraj-crest akshraj-crest requested a review from efd6 April 27, 2026 12:06
Comment thread packages/beyondtrust_epm/data_stream/audit/agent/stream/cel.yml.hbs
Comment thread packages/beyondtrust_epm/data_stream/audit/agent/stream/cel.yml.hbs Outdated
Comment thread packages/beyondtrust_epm/_dev/deploy/docker/files/config.yml
1. Update system test config to allow pagination in system test
2. Remove target field in date and convert processor when failure occurs
3. Run `celfmt`
@akshraj-crest akshraj-crest requested a review from efd6 May 4, 2026 13:10

@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.

Thanks

@efd6 efd6 merged commit 85ae7cb into elastic:feature/beyondtrust_epm-0.1.0 May 11, 2026
4 checks passed
@andrewkroh andrewkroh added the New Integration Issue or pull request for creating a new integration package. label May 11, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. New Integration Issue or pull request for creating a new integration package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants