Skip to content

Commit

Permalink
added info.event.source field, to be used by external tools to identi…
Browse files Browse the repository at this point in the history
…fy kunai logs

Signed-off-by: Quentin JEROME <qjerome@users.noreply.github.com>
  • Loading branch information
qjerome committed Sep 18, 2023
1 parent 1320e6a commit 9d51b87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kunai/src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ impl From<&StdEventInfo> for JsonValue {
},
// event information
event: object!{
// this field can be used by other tools to identify that event comes from kunai
source: "kunai",
id: info.etype.id(),
name: info.etype.as_str(),
uuid: info.uuid.into_uuid().hyphenated().to_string(),
Expand Down

0 comments on commit 9d51b87

Please sign in to comment.