octopipe logs
Command Referenceoctopipe logs
command provides real-time insights into the execution of your pipelines by streaming log data to your terminal. It is a critical tool for monitoring, debugging, and verifying that your pipelines are running as expected.
--tail <number>
Description: Displays the last N lines of logs.
Example: —tail 100
• —follow
Description: Streams logs in real time, similar to the Unix tail -f command.
• --since <duration>
Description: Shows logs since a specific time period (e.g., 1h for one hour, 30m for 30 minutes).
Example: —since 1h
• --grep <pattern>
Description: Filters log output to only include lines that match a specified pattern.
Example: —grep “ERROR”
• --level <log_level>
Description: Filters logs by level (e.g., info, warn, error).
Example: —level error
Detailed Behavior
• Real-Time Streaming:
When the —follow option is enabled, logs are continuously streamed to your terminal until you cancel the command.
• Filtering:
The —grep and —level options allow you to focus on specific log entries, reducing noise and aiding in quick troubleshooting.
• Tail Option:
The —tail option is useful for reviewing the most recent log entries to quickly identify recent events or errors.
Examples
Example 1: Follow Logs for a Pipeline