The Simplest Way to Make Elastic Observability and Teamcity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link elastic observability and teamcity by sending build logs and metrics to your search cluster. This setup lets your team spot slow tests, failed steps, and broken builds in one place. Build runners create huge amounts of log data every single day. Without a central place to read those logs, engineers waste hours digging through old build histories. Sending build events to a central search tool helps teams find root causes fast. You can track queue wait times, agent health, and test pass

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You link elastic observability and teamcity by sending build logs and metrics to your search cluster. This setup lets your team spot slow tests, failed steps, and broken builds in one place.

Build runners create huge amounts of log data every single day. Without a central place to read those logs, engineers waste hours digging through old build histories. Sending build events to a central search tool helps teams find root causes fast. You can track queue wait times, agent health, and test pass rates on one screen.

How data and permissions flow in elastic observability and teamcity

The build server runs jobs on remote agents and tracks every step from start to finish. An exporter or log shipper reads those build results and sends them to the search cluster. The search cluster stores the events in indices so engineers can run fast queries.

To make this work, the build tool needs a secure way to log in. Teams create a dedicated service key in the search cluster with write permissions only. The build server uses this key to push logs and metrics over an encrypted network path.

Once the data lands in the search cluster, engineers log in to read the dashboards. Role rules control which teams can read specific build indices and deployment logs. This split keeps write keys on the build side and read roles on the user side.

Common failure modes and how to scope roles

Many teams make the mistake of using a master admin key for their log shipper. If a build script leaks that key, an attacker can delete data or read secrets. Shared service accounts also make it hard to see which agent sent a bad request.

Another common issue happens when build logs contain raw secrets or personal data. Verbose test runs often print user emails, phone numbers, card numbers, or national IDs. When those logs flow into a search index, anyone with read rights sees the sensitive text. Unlogged queries in the search tool then make it impossible to audit who read those records.

AI Observability + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix these risks, scope every API key to a single index and action. Give the build server write rights only for the specific build log index. Set up data masking rules to rewrite emails and card numbers before indexing the text.

Lock down the network path between the build agents and the search cluster. Use private network routes and strict firewall rules so only known build agents can send data. Rotate your service keys on a set schedule and remove old user roles right away.

Best practices for build metrics and log retention

High build volume can fill up your search storage in just a few weeks. Do not send every single debug line from every minor branch build. Filter your shipper to send full logs only when a build step fails. For passing builds, send basic summary metrics like duration, status, and agent name.

Set up life cycle rules in your search cluster to manage old build records. Move logs older than thirty days to cheaper cold storage tiers. Delete raw build logs after ninety days if your audit rules allow it. Keeping your indices small makes dashboard queries run much faster for the whole team.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

What build metrics should we track first?

Start by tracking build duration, queue wait time, failure rate, and agent cpu load. These four numbers show you right away if your build pipeline is slow or broken.

How do we stop build logs from leaking sensitive data?

Keep secrets out of build output and add masking rules to rewrite emails or card numbers. Also limit read roles in the search cluster so only the right team sees each project.

Should build agents send logs straight to the search cluster?

It is safer to route logs through a central shipper or collector on your private network. This approach limits how many machines hold cluster keys and keeps network rules simple.

The query runs. The emails stay hidden.