Skip to content

logs

View and filter agent log entries

Terminal window
conhive-agent logs

Retrieves and displays recent log entries generated by the Conhive agent. Allows filtering logs based on keywords, specific modules, or log severity levels (e.g., info, warn, error, debug) to aid in diagnostics, monitoring activity, and troubleshooting issues. Supports options like specifying the number of lines to show.

Terminal window
conhive-agent logs [flags]
Terminal window
conhive-agent logs --filter "error" --level "warn" --tail 100 # Show last 100 lines containing 'error' with level warning or higher
Terminal window
--filter string Filter logs by a specific keyword
-h, --help help for logs
--level string Filter logs by a specific level (options: info,
error, warn)
-f, --log-format string Specify the logging format (options: console,
json) (default "text")
-l, --log-level string Define the logging level (options: trace,
debug, info, warn, error, fatal, panic)
(default "info")
-o, --log-to-file Enable logging to a file (default true)
-p, --port int32 Port to run the server on (default 5050)
-w, --workdir string Set the working directory for agent operations
(default: $HOME/.conhive)