[BUG] Journal as 'Python3' and not as WALinuxAgent
- Dominant language
- Python
- Stars
- 581
- Forks
- 397
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 9
Description
1. Section of the log where the error occurs.
The log identifier is not set to WALinuxAgent which can make troubleshooting issues more difficult:
Mar 22 10:02:23 sltestrhel9-2023-0217 **python3**[948]: 2023-03-22T09:02:23.944179Z ERROR Daemon Daemon Event: name=WALinuxAgent, op=UnhandledError, message=Traceback (most recent call last):
Mar 22 10:02:23 sltestrhel9-2023-0217 **python3**[948]: File "/usr/lib/python3.9/site-packages/azurelinuxagent/daemon/main.py", line 83, in run
Mar 22 10:02:23 sltestrhel9-2023-0217 **python3**[948]: self.daemon(child_args)
Mar 22 10:02:23 sltestrhel9-2023-0217 **python3**[948]: File "/usr/lib/python3.9/site-packages/azurelinuxagent/daemon/main.py", line 145, in daemon
**Distro and WALinuxAgent details:**
- Distro and Version: RHEL9
- WALinuxAgent version: WALinuxAgent-2.3.0.2-3.el9.noarch
**Additional context**
log forwarding based on the identifier is easier and more reliable, also will help identifier issues faster.
Can this be improved?
Contributor guide
Research direction
Start with azurelinuxagent/daemon/main.py, especially the run and daemon paths shown in the log, and trace how the process name is supplied to journald. Check the existing logging or service configuration related to the WALinuxAgent identifier. Done means journal entries identify WALinuxAgent rather than python3 and the relevant tests or logging checks pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100