Azion CLI logs
Watch your functions logs and application’s HTTP events logs through Azion CLI.
Functions logs
The azion logs cells subcommand displays functions console logs.
Usage
azion logs cells [flags]Examples
azion logs cellsazion logs cells --tailazion logs cells --function-id 1234 --limit 10Optional Flags
function-id
The --function-id flag specifies the ID of the function you wish to see the logs for. If not informed, logs for all functions will be displayed.
help
The --help option displays more information about the azion logs cells command.
limit
The --limit option defines how many logs will be displayed per request. By default, it’s 100.
pretty
The --pretty option displays the logs in a prettified way, making it easier to read and analyze.
tail
The --tail option displays the logs continuously, similar to the tail -f command in Unix-like operating systems. This is useful for monitoring logs in real time.
Application HTTP logs
The azion logs http subcommand displays HTTP event logs.
Examples
azion logs httpazion logs http --tailOptional Flags
help
The --help option displays more information about the logs http command.
limit
The --limit option defines how many logs will be displayed per request. By default, it’s 100.
pretty
The --pretty option displays the logs in a prettified view, making it easier to read and analyze.
tail
The --tail option displays the logs continuously, similar to the tail -f command in Unix-like operating systems. This is useful for monitoring logs in real-time.
Watch this video to enhance your real-time log monitoring skills with the Tail command and Azion CLI: