Find an error and the log lines before it
Use smart find to keep the events surrounding an error, refine the result and return to the original file order.
Kubernetes / JSON
Make container JSON readable, stack service and error filters, then undo one condition while your investigation stays open.
Updated October 27, 2026 · Flik 0.1.0 · synthetic examples · macOS and Linux
A pod log stream is easy to start and harder to investigate. Nested JSON hides the message, one service produces most of the noise, and every extra condition can mean rebuilding a shell pipeline. This guide keeps that work inside one Flik workspace.
Download the synthetic CRI sample. It contains timestamps, stdout/stderr streams and embedded application JSON. No cluster or production logs are needed.
flik container.logFlik opens at the end. Press g to inspect the sample from its beginning, or G to return to the end. Press w to expand embedded JSON and inspect the service, severity and message without manually unescaping each record.
service:payment, then press Enter.level:error.upstream timeout and payment request failed.This is a refinement workflow: undoing the last condition does not reopen the file or remove the preceding condition. Press Ctrl+F to inspect the filter stack.
kubectl logs -f deployment/demo-api | flik -Replace deployment/demo-api with a workload you can read. Select the namespace or container using kubectl’s own flags when needed. Flik receives the application output; it does not connect to the Kubernetes API or choose a pod for you. Saved CRI files include the container wrapper; kubectl output may contain plain application JSON instead.
The recording uses synthetic data and the actual Flik interface: beautify JSON, add a service filter, add an error filter, undo the last filter.
Filters depend on fields that exist in the emitted format. Use Tab in search to complete available fields and observed values. If the data is plain text or uses different names, begin with a text search such as /timeout. Flik helps inspect the stream; it does not change Kubernetes retention, fetch events from other pods automatically or establish the cause of an incident.
Download a ready-to-run macOS or Linux release, open a synthetic sample and repeat the investigation locally.
Download Flik →Use smart find to keep the events surrounding an error, refine the result and return to the original file order.
Filter failed Nginx requests, count occurrences by hour and distinguish HTTP statuses from error-log severity.
Compare interactive log investigation with shell filtering and JSON transformation, using the same small example.