Skip to content
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

NAS-133329 / 25.04 / Fix python tracebacks for syslog messages #15291

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

anodos325
Copy link
Contributor

@anodos325 anodos325 commented Dec 31, 2024

This commit ensures that python tracebacks are properly sent to remote syslog server and inserted into our own log files via syslog-ng. Records are converted to single-line and tracebacks and associated stack information are parameterized to allow for easier automated parsing of log entries.

Messages will have format as follows:

<message> exception=<exception> stack=<stack>

@anodos325 anodos325 added the jira label Dec 31, 2024
@anodos325 anodos325 requested a review from a team December 31, 2024 15:47
@bugclerk bugclerk changed the title Fix python tracebacks for syslog messages NAS-133329 / 25.04 / Fix python tracebacks for syslog messages Dec 31, 2024
@bugclerk
Copy link
Contributor

@anodos325 anodos325 force-pushed the fix-syslog-traceback branch from 67ddb10 to 169ef4f Compare December 31, 2024 19:54
This commit ensures that python tracebacks are properly sent to
remote syslog server and inserted into our own log files via
syslog-ng. Records are converted to single-line and tracebacks
and associated stack information are converted to parameterized
JSON data to allow for easier automated parsing of log entries.

Messages will have format as follows:

```
<message> @Cee:{"TNLOG": {"exception": <exception>, ...}}
```
@anodos325 anodos325 force-pushed the fix-syslog-traceback branch from 169ef4f to a704d9c Compare December 31, 2024 19:59
@anodos325 anodos325 merged commit dd461fb into master Dec 31, 2024
2 checks passed
@anodos325 anodos325 deleted the fix-syslog-traceback branch December 31, 2024 20:04
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Dec 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants