The Simplest Way to Make Firestore and Kibana Work Like They Should
Teams pair firestore and kibana by syncing document changes into an Elasticsearch index. This setup lets you run fast searches and build charts on app data. Firestore stores live app records well, but it lacks deep search and chart tools. Kibana sits on top of Elasticsearch to give your team visual boards and text search. When you link them, support and ops teams can check trends fast. How data and roles flow between firestore and kibana Firestore does not send data straight to Kibana on its
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 firestore and kibana by syncing document changes into an Elasticsearch index. This setup lets you run fast searches and build charts on app data.
Firestore stores live app records well, but it lacks deep search and chart tools. Kibana sits on top of Elasticsearch to give your team visual boards and text search. When you link them, support and ops teams can check trends fast.
How data and roles flow between firestore and kibana
Firestore does not send data straight to Kibana on its own. You need a small worker or cloud function to bridge the two tools. When a user writes a record in Firestore, that change triggers your worker. The worker reads the new document and sends a copy to Elasticsearch. Kibana then reads that index to draw charts and run search queries.
Each step in this chain needs its own log in and role check. The worker uses a Google Cloud service account to read from the database. That account should only have read rights on the collections you want to sync. On the other side, the worker uses an API key to write to Elasticsearch. Users then log in to Kibana with their own work accounts to view boards.
You must also think about what data leaves your main database. Live records often hold private items like emails, phone numbers, or card numbers. Your sync worker should strip or rewrite those fields before sending them to search. Alternatively, masking rewrites matched fields in results when people query the database directly. Keeping raw secrets out of search indexes reduces risk if a board gets shared.
Common failure modes in sync pipelines
The biggest mistake teams make is using one broad key for the whole pipeline. A builder might give the sync worker full admin rights in Google Cloud. They might also use the main Elasticsearch superuser key to write index data. If someone steals that worker key, they can delete live app data or search indexes.
Shared logins inside Kibana cause a second major problem for ops teams. When ten engineers share one admin login, your audit logs become useless. You cannot tell who changed a board or ran a heavy query. You also cannot cut off access when one person leaves the team. Every human user should log in through your main identity provider instead.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged direct reads on the source database create another blind spot. When a chart looks wrong in Kibana, engineers often check the raw Firestore records. If they use local keys on their laptops, you have no log of those reads. You should scope network paths so workers and users only take approved routes. Set up strict read roles per collection and rotate your sync keys often.
Keeping schemas and costs under control
Document databases let developers save any field type without a fixed plan. Search indexes hate this and will break if a field changes from text to numbers. Your sync worker should check field types before it writes to the search index. Dropping bad fields in the worker keeps the search cluster healthy and fast.
Syncing every tiny update can also drive up your cloud bill very fast. High traffic collections might change hundreds of times per second during peak hours. Do not sync raw event collections if your team only needs daily totals. Filter out noisy fields and batch your writes to keep both tools fast.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Can Kibana query Firestore without Elasticsearch?
No, Kibana only reads data stored inside an Elasticsearch cluster. You must run a sync worker that copies Firestore documents into Elasticsearch first.
How do we keep private data out of Kibana boards?
Filter or mask sensitive fields like emails and phone numbers inside your sync worker. Only send the safe fields needed for charts to the search index.
What role should the sync worker have in Google Cloud?
Give the worker a service account with read-only rights on specific collections. Never give the sync worker write or admin rights on your live database.
Related guides
In this post