question

johnjoyner avatar image
0 Votes"
johnjoyner asked ·

Azure Automation Linux User Hybrid Worker Group execution log

My Linux User Hybrid Worker Group is working, I can push known working Python2 scripts to the on-prem Linux computer and they produce output. Now I'm troubleshooting a new Python2 script and need to watch the execution log.
Verbose Logging is ON for all my runbooks...('Logging and tracing' under 'RUNBOOK SETTINGS' in the Runbook blade > set 'Log verbose records' to On > Save).
However when I run $ sudo tail -f /var/opt/microsoft/omsagent/run/automationworker/worker.log I only see System hybrid worker group .py scripts executing. I never see any User hybrid worker group execution evidence. Known working .py Runbooks produce output but nothing appears in worker.log. So I can't troubleshoot why my new runbook is having problems.
Need to understand why Verbose Logging could be failing to take effect or if worker log is being written somewhere else.

azure-automation
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for reaching out!! Apologies for late response. I will check internally and update you soon.

0 Votes 0 · ·
SwathiDhanwada-3128 avatar image
0 Votes"
SwathiDhanwada-3128 answered ·

@johnjoyner Thanks for your question. The user hybrid worker logs can be found at /home/nxautomation/run/worker.log . Kindly check the mentioned path and revert if you have further questions.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

johnjoyner avatar image
0 Votes"
johnjoyner answered ·

Hi Swathi: It doesn't appear in AA documentation that User runbook log worker.log is in /home/nxautomation/run while System runbook worker.log is at /var/opt/microsoft/omsagent/run/automationworker. Perhaps I missed it but now it's documented here. Thank you very much.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@johnjoyner Glad to know it helped you.

0 Votes 0 · ·