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

logs: Implement decorations_top_level flag for status logs #8102

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Aug 2, 2023

  • Adds support to put the decorations at the root level of the status log JSON.

  • Remove use of boost ptree to write status logs JSON and use rapidjson, making it consistent with results log. The "line", "unixTime" and "severity" will not be written as strings anymore, since they are numbers.

  • Add tests to verify standard decorations and custom ones for status logs.

- Adds support to put the decorations at the root level
  of the status log JSON.

- Remove use of boost ptree to write status logs JSON
  and use rapidjson, making it consistent with results log.
  The "line", "unixTime" and "severity" will not be
  written as strings anymore, since they are numbers.

- Add tests to verify standard decorations and custom ones
  for status logs.
@Smjert Smjert marked this pull request as ready for review August 3, 2023 20:50
@Smjert Smjert requested review from a team as code owners August 3, 2023 20:50
@Smjert Smjert force-pushed the stefano/feature/decorations-top-level-status-logs branch from 265d613 to 12f512e Compare August 16, 2023 19:44
@directionless directionless added this to the 5.10.0 milestone Aug 29, 2023
Copy link
Member

@sharvilshah sharvilshah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Smjert! I haven't yet tested this locally, but this broadly looks right..thanks for the detailed tests, those do help! Just a minor update on doc, would be nice to have that new flag added to our docs.

plugins/logger/buffered.cpp Show resolved Hide resolved
@Smjert Smjert merged commit 6530bce into osquery:master Aug 30, 2023
16 checks passed
@Smjert Smjert deleted the stefano/feature/decorations-top-level-status-logs branch August 30, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants