logs
View and filter agent log entries
conhive-agent logs
Description
Section titled “Description”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.
conhive-agent logs [flags]
Examples
Section titled “Examples”conhive-agent logs --filter "error" --level "warn" --tail 100 # Show last 100 lines containing 'error' with level warning or higher
Options
Section titled “Options” --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)
Options inherited from parent commands
Section titled “Options inherited from parent commands” -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)
SEE ALSO
Section titled “SEE ALSO”conhive-agent
- Manage and monitor the Conhive backend agent