Hi ,
Thanks for reaching out to Microsoft Q&A.
This problem has been reported by other users as well, suggesting it might be related to the diagnostic settings of azure services, including azure database for PostgreSQL.
Potential Workarounds:
- Inspect Diagnostic Settings:
- Review the diagnostic settings configured for your Azure Database for PostgreSQL. Ensure that the logs are being sent in the correct format and that all necessary categories are selected appropriately.
- Validate JSON Formatting:
- The error message indicates a JSON parsing issue. Verify that the logs being generated and sent to Log Analytics are properly formatted JSON. Malformed JSON can lead to ingestion errors.
- Check for Recent Changes:
- Determine if any recent updates or changes were made to your PostgreSQL instance or its diagnostic settings around the time the errors began. Reverting or adjusting these changes might resolve the issue.
- Monitor Log Analytics Workspace:
- Utilize the
_LogOperation
function in your Log Analytics workspace to identify and analyze the errors. Running the following query can help pinpoint the source of the issue._LogOperation | where Level in ("Error", "Warning") | summarize arg_max(TimeGenerated, *) by Level, Resource=_ResourceId, Computer, Category, Operation, Details=Detail | project TimeGenerated, Level, Category, Computer, Details
- Utilize the
If nothing worked, raise a support case with azure.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.