-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command az container and container app logs - log line are getting cut off #28873
Comments
Hi @dss010101, 2.59.0 is not the latest Azure CLI(2.60.0). If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli. |
Thank you for opening this issue, we will look into it. |
same issue on 2.60.0 |
Hi @dss010101 I notice in the
Thanks |
using that option with 'text' shows the entire line. the default does not. |
is the recommendation to log as json for the default case? or is this bug? |
As the
|
I guess my question is...if we want to use app containers, are expected to modify our application to log in json format instead of text? Is that the recommendation? |
I haven't found a recommendation for this, it depends on your needs. |
Describe the bug
I have a python app that i run in both a Container App container as well as a Container App Job container.
The application writes logs to both the console and a file as follows.
When i use the following from the console:
az containerapp logs show -n <container app name> -g <resource group> --type console --tail 30
I see logs like these:
When i log into a vm that has the fileshare mounted where the logs are written, i see the logs in the file as they should appear.
Furthermore, when looking at these same logs from portal.azure either using logstream or console i see the logs as they should appear -the full line is shown.
I wonder if the issue may be the | character?
Related command
az containerapp logs show -n -g --type console --tail 30
az containerapp logs show -n -g --type console --follow
Errors
None
Issue script & Debug output
None
Expected behavior
Expect to see entire log line
Environment Summary
azure-cli 2.59.0 *
core 2.59.0 *
telemetry 1.1.0
Extensions:
log-analytics 0.2.2
Dependencies:
msal 1.27.0
azure-mgmt-resource 23.1.0b2
Python location '/opt/az/bin/python3'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Mar 27 2024, 04:03:49) [GCC 12.2.0]
Additional context
No response
The text was updated successfully, but these errors were encountered: