The Simplest Way to Make Kibana and Step Functions Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use kibana and step functions together to track automated cloud workflows in real time. Step Functions runs the tasks, while Kibana shows the logs and state changes on dashboards. This setup helps teams spot failed runs right away. Engineers do not need to dig through raw cloud consoles to find one broken step. They can filter by run ID and see the full path on one screen. How data flows between kibana and step functions Step Functions runs workflows made of single tasks and choices. E

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 use kibana and step functions together to track automated cloud workflows in real time. Step Functions runs the tasks, while Kibana shows the logs and state changes on dashboards.

This setup helps teams spot failed runs right away. Engineers do not need to dig through raw cloud consoles to find one broken step. They can filter by run ID and see the full path on one screen.

How data flows between kibana and step functions

Step Functions runs workflows made of single tasks and choices. Each step creates events when it starts, passes data, or fails. The cloud platform sends these events to a central log stream.

From that log stream, a shipper reads the new events and sends them out. It writes those records into the search index that sits behind Kibana. Once the records land in the index, Kibana can read and chart them.

Permissions control every step of this pipeline. The workflow engine needs a role that allows it to write logs. The log shipper needs its own role to read the stream and write to the index. Finally, users log in to Kibana with roles that limit which indexes they can read.

Good setups keep these roles separate. The workflow engine should never have permission to read the search index. Kibana users should not have permission to change the workflow rules by default. Clear boundaries stop small bugs from turning into big security gaps.

Common failure modes and how to scope roles

Many teams rush the setup and use one shared service account for the whole pipeline. They give that account broad permissions to read and write across all cloud tools. If an attacker steals that one key, they can read every log and trigger any workflow.

Broad tokens cause another common problem. Teams often create long-lived keys for the log shipper and never rotate them. When someone leaves the team, those static keys stay active in old scripts.

Cloud Functions IAM + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged queries also create blind spots for security teams. When ten engineers share one admin login in Kibana, the audit trail breaks. You cannot tell who ran a search or who changed a saved dashboard.

To fix this, scope each role down to the single action it needs. Give the log shipper write access to only the workflow log index. Use short-lived roles from your cloud provider instead of static keys. Map every human user in Kibana to their own identity provider account.

Keeping sensitive workflow data safe in logs

State machines often pass customer payloads from one step to the next. If you log the full payload at every step, private data lands in your search index. Anyone with dashboard access might see emails, phone numbers, card numbers, or national IDs.

You can prevent this by filtering what the workflow writes to the log stream. Log only the state name, run ID, duration, and error code. Leave the raw customer payload out of the event record when possible.

When payloads must enter the logs, use data masking rules to rewrite matched fields in results. Masking replaces sensitive strings like card numbers or emails before engineers run their daily checks. This keeps your dashboards useful for debugging while reducing exposure of private fields.

Network paths between the cloud account and the search cluster also need tight rules. Keep log traffic on private network links instead of the public web. Allow traffic only from the specific shipper service to the search port.

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

Can Kibana trigger a Step Functions workflow when an alert fires?

Yes, Kibana alerts can send a webhook request to an API endpoint you control. That endpoint can then start a state machine run using a scoped cloud role.

Why are my Step Functions logs missing from Kibana dashboards?

Check the role permissions on both the state machine and the log shipper first. Most gaps happen when a role loses write access or when a field type changes.

How do we stop engineers from sharing one Kibana admin account?

Connect Kibana to your team identity provider using standard single sign-on protocols. Then assign read roles based on team groups and turn off the shared local account.

The query runs. The emails stay hidden.