The Simplest Way to Make Kibana and Teamcity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair kibana and teamcity to ship build logs into search dashboards for fast review. TeamCity runs your code builds, and Kibana shows what passed or failed across runs. This workflow helps developers spot broken tests without digging through raw text files. Build agents push log data to your search store, and Kibana turns that data into charts. You can track slow build steps, agent queue times, and test error rates in one place. How login, permissions, and data flow between kibana and te

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.

Teams pair kibana and teamcity to ship build logs into search dashboards for fast review. TeamCity runs your code builds, and Kibana shows what passed or failed across runs.

This workflow helps developers spot broken tests without digging through raw text files. Build agents push log data to your search store, and Kibana turns that data into charts. You can track slow build steps, agent queue times, and test error rates in one place.

How login, permissions, and data flow between kibana and teamcity

Data moves from your build server to your search cluster during and after each build run. A log shipper or build plugin reads agent output and sends structured events over the network. Each event carries basic tags like project name, build number, agent name, and job status.

Your search cluster stores these events inside indices grouped by date or by project team. Kibana reads those indices and displays dashboards for your engineers to check every day. Both tools need clear login rules so only the right people and agents touch this data.

First, the build server needs a write key to send log events into the search cluster. That key should only allow adding new records to specific build log indices. It should never have permission to delete old indices or change cluster settings.

Second, engineers need their own login accounts when they open Kibana to read build logs. Tying both tools to your central identity provider keeps user roles consistent across both apps. If a developer can view a project in TeamCity, their role should match in Kibana.

Common failure modes and how to scope roles and network paths

Many teams set up this link fast by sharing one admin key across all build agents. If one agent or build script leaks that key, an attacker gains full cluster control. Another common mistake is letting every developer query all indices without any role checks.

Build logs often hold sensitive details by accident, such as emails, phone numbers, or card numbers. When test suites print raw data to the console, those lines land straight in Kibana. Unlogged queries also create risk because security teams cannot tell who searched those sensitive build records.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create separate write keys for different project groups or agent pools. Scope each role so a build agent can only write to its own project index. Set up data masking rules to rewrite emails, phone numbers, andnational IDs in results.

Next, lock down the network path between your build agents and your log store. Put both systems on a private network and block public traffic to the ingestion port. Use encrypted transport for all log shipping so nobody can read build data on the wire.

Keeping build dashboards fast and clean over time

Build servers create huge amounts of text when dozens of teams run tests all day. If you send every debug line into your search index, storage costs will jump fast. Searches in Kibana will also slow down when indices grow too large to scan.

Set clear retention rules so old build logs age out and delete on a set schedule. Most teams only need detailed line-by-line build output for a few weeks after a release. Keep high-level summary metrics, like build duration and pass rate, in a separate smaller index.

Check your field mappings so new build variables do not create thousands of unique index fields. Standardize log fields across projects so one Kibana dashboard works for every engineering team. This keeps search fast and makes life much easier for on-call staff during an outage.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How do build logs get from TeamCity into Kibana?

A log shipper on the build agent or a server plugin sends events to your search store. Kibana then reads those stored indices to build charts and search views for your team.

What permissions should the TeamCity log shipping key have?

Give the shipping key write-only permissions scoped to your dedicated build log indices. Do not grant cluster admin rights, read permissions across other indices, or index deletion rights.

How can we protect sensitive data inside build logs?

Strip secrets in your build scripts first, and apply role-based index rules in Kibana. You can also use masking to rewrite emails, phone numbers, or card numbers in search results.

The query runs. The emails stay hidden.