From c7d31d9eb71ab8ceb176a5e5288227adfa3e8b31 Mon Sep 17 00:00:00 2001 From: Bly Kim Date: Wed, 8 Nov 2023 11:10:05 +0900 Subject: [PATCH] Add source field to `SecuLog` & Bump version to 0.15.1 (#80) * Add source field to SecuLog * Bump version to 0.15.1 --- CHANGELOG.md | 9 +++++++++ Cargo.toml | 2 +- src/ingest/log.rs | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0395b36..1c04bc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.15.1] - 2023-11-08 + +### Added + +- Added source field to `SecuLog`. + ## [0.15.0] - 2023-11-07 ### Changed @@ -204,6 +210,9 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Move from giganto +[0.15.1]: https://github.com/aicers/giganto-client/compare/0.15.0...0.15.1 +[0.15.0]: https://github.com/aicers/giganto-client/compare/0.14.0...0.15.0 +[0.14.0]: https://github.com/aicers/giganto-client/compare/0.13.2...0.14.0 [0.13.2]: https://github.com/aicers/giganto-client/compare/0.13.1...0.13.2 [0.13.1]: https://github.com/aicers/giganto-client/compare/0.13.0...0.13.1 [0.13.0]: https://github.com/aicers/giganto-client/compare/0.12.2...0.13.0 diff --git a/Cargo.toml b/Cargo.toml index a5fdc89..2820683 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "giganto-client" -version = "0.15.0" +version = "0.15.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/ingest/log.rs b/src/ingest/log.rs index 2d72584..44f3f92 100644 --- a/src/ingest/log.rs +++ b/src/ingest/log.rs @@ -53,6 +53,7 @@ impl Display for OpLog { #[allow(clippy::module_name_repetitions)] #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] pub struct SecuLog { + pub source: String, pub kind: String, pub log_type: String, pub version: String, @@ -68,7 +69,8 @@ impl Display for SecuLog { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!( f, - "{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}", + "{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}", + self.source, self.kind, self.log_type, self.version,