Viewing Logs
You can view logs for your Flogo app on the Logs tab of an Application Details page. For details on how logs are collected, see Configuring Fluent Bit for TIBCO Flogo in a Dataplane.
Historical logs are displayed from a selected time range (5 minutes by default), or can be viewed in a scrolling real-time display.
- Procedure
-
In TIBCO Control Plane, click Data Planes from the left navigation.
-
On the Data Plane card of your choice, click Go to Data Plane.
-
In the Applications section, click a running Flogo app from the listed apps.
-
Click the Logs tab. By default, all the log information is summarized in a table format.
On the Logs tab, you can:-
Use the search box to find specific entries.
-
Click Raw to view raw logs.
-
Click Table to return to the table view.
-
Click Filters, select one or more log levels to filter the displayed logs.
-
Viewing Real-Time Logs
- Procedure
-
Click the Realtime control to toggle on real-time logs. App logs for the last hour are displayed on a scrolling window on the Logs tab, and they continue to update in real time. Logs are refreshed every 10 seconds, and new log data is added to the top of the display.
-
To return to historical logs, click the Realtime switch and toggle it off, or select a range in the Time range control.
Correlating Logs with Traces
You can enrich your application logs with tracing information to facilitate auditing and debugging. When you enable the FLOGO_OTEL_TRACE=true environment variable for any Flogo application running inside the Data Plane, the TraceID and spanID are automatically included in the logs.
This allows you to correlate specific log entries with their corresponding traces. Additionally, the log_type field helps distinguish between user-generated logs and engine logs.
spanID and TraceID values are only visible in the logs when the FLOGO_OTEL_TRACE environment variable is set to true. Without this setting, these values will not be present.