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

log network as String to match the other log event that emits network #811

Merged
merged 1 commit into from Jan 23, 2023

Conversation

asymmetricia
Copy link
Contributor

@asymmetricia asymmetricia commented Jan 20, 2023

Hi! Small change for consistency in structured logging. We have two log calls that emit a network field. Currently one of them is a String and the other one is the object itself (which gets encoded as a JSON object for JSON logging). This changes the latter call to emit a String.

Happy to go the other direction, too, if we think that's better, but I'll note that the structure of Mask in the resulting log entry is not super great (at least after logstash is done with it):

{"IP": "10.219.11.104", "Mask": "/4AAAA=="}

@wadey wadey added this to the v1.7.0 milestone Jan 23, 2023
@wadey wadey merged commit 0fc4d81 into slackhq:master Jan 23, 2023
gabos31 pushed a commit to oneclick-ag/nebula that referenced this pull request Jul 4, 2023
…at emits network (slackhq#811)

Co-authored-by: Tricia Bogen <tbogen@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants