Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR brings a way to create events coming from kunai itself
It is motivated by the need to bubble up some important information into the Kunai events themselves, as those may be stored in a central place (splunk, OpenSearch ...). Having some information directly accessible in the logs prevents having to parse an additional log source (service logs) and also having to correlate with them.
This PR also provides a concrete use of agent event by including the implementation of an event when data loss occurs. Hereafter is an example of such an event:
This PR will serve as a foundation work to implement more agent logs such as
start
andstop
events.