Bazel Build Event Protocol

The Build Event Protocol (BEP) is Bazel's structured stream of build events — target configured, progress, test results, action executed, build finished — emitted during every invocation. BEP can be written to a local file (--build_event_json_file / --build_event_binary_file) or streamed via gRPC to a Build Event Service (BES) backend for build observability, flake analysis, and CI dashboards.

API entry from apis.yml

apis.yml Raw ↑
aid: bazel-build:bazel-build-event-protocol
name: Bazel Build Event Protocol
description: The Build Event Protocol (BEP) is Bazel's structured stream of build events — target configured,
  progress, test results, action executed, build finished — emitted during every invocation. BEP can be
  written to a local file (--build_event_json_file / --build_event_binary_file) or streamed via gRPC to
  a Build Event Service (BES) backend for build observability, flake analysis, and CI dashboards.
humanURL: https://bazel.build/remote/bep
tags:
- BEP
- BES
- Build Events
- Observability
- Streaming
properties:
- type: Documentation
  url: https://bazel.build/remote/bep
- type: Documentation
  url: https://bazel.build/remote/bep-examples
- type: ProtocolBuffer
  url: https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto