Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1ddf6af
feat: Add syslog codec
syedriko Jun 12, 2023
7407f7b
chore: Split syslog encoder into separate files
polarathene Mar 15, 2024
c9aacd9
refactor: Syslog facility and severity
polarathene Mar 15, 2024
d03c87f
refactor: `SyslogSerializer`
polarathene Mar 15, 2024
0288a80
refactor: `SyslogSerializerConfig`
polarathene Mar 14, 2024
1049ebd
chore: Merge back into `syslog.rs`
polarathene Mar 15, 2024
3cdc1b4
feat: Add StructuredData support to Syslog encoder
polarathene Mar 15, 2024
3001b67
chore: Housekeeping
polarathene Mar 15, 2024
f8be8d9
chore: DRY `into_variant()` via `akin` crate
polarathene Mar 18, 2024
5360287
chore: Minor revisions
polarathene Mar 20, 2024
38d0d61
chore: Switch from `DateTime<Local>` to `DateTime<Utc>`
polarathene Mar 20, 2024
7ef97fb
chore: Adopt a separate options config struct + minor revisions
polarathene Mar 20, 2024
34e735d
chore: Switch from `String` to deserialize `Facility` + `Severity` enums
polarathene Apr 1, 2024
2ac3da2
fix: Support deserializing config value that is a number type
polarathene Apr 1, 2024
7ba64be
chore: Add doc comments for enum variants to appease Vector requirement
polarathene Apr 1, 2024
ed202bb
chore: Use `snafu` for error message
polarathene Apr 1, 2024
c295b7d
merge with master
vparfonov Aug 18, 2025
c87ea7b
Continue working with existed code: add tests, make facility and seve…
vparfonov Aug 29, 2025
078cfee
add except_fields option
vparfonov Sep 1, 2025
47e5d6a
code cleanup, remove duplication, use generic, add tests
vparfonov Sep 3, 2025
12c8777
add except_fields option
vparfonov Sep 5, 2025
be32c25
fix clippy warning
vparfonov Sep 8, 2025
e097db4
Merge with master
vparfonov Sep 15, 2025
bbfb951
Merge with master
vparfonov Sep 15, 2025
c000b1d
Fix compilation error. Apply formater
vparfonov Sep 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions lib/codecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ apache-avro = { version = "0.16.0", default-features = false }
bytes.workspace = true
chrono.workspace = true
csv-core = { version = "0.1.12", default-features = false }
derivative.workspace = true
derivative = { version = "2", default-features = false }
Copy link
Member

Choose a reason for hiding this comment

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

Let's use workspace dependencies if they are used in >1 places.

derive_more = { version = "0.99", optional = true }
dyn-clone = { version = "1", default-features = false }
flate2.workspace = true
influxdb-line-protocol = { version = "2", default-features = false }
Expand All @@ -24,13 +25,15 @@ ordered-float.workspace = true
prost.workspace = true
prost-reflect.workspace = true
rand.workspace = true
regex.workspace = true
regex = { version = "1.11.1", default-features = false, features = ["std", "perf"] }
serde.workspace = true
serde_with = { version = "3.14.0", default-features = false, features = ["std", "macros", "chrono_0_4"] }
serde_json.workspace = true
serde-aux = { version = "4.5", optional = true }
smallvec = { version = "1", default-features = false, features = ["union"] }
snafu.workspace = true
syslog_loose = { version = "0.23", default-features = false, optional = true }
strum = { version = "0.26", features = ["derive"], optional = true }
syslog_loose = { version = "0.22", default-features = false, optional = true }
Copy link
Member

Choose a reason for hiding this comment

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

Did you intentionally downgrade here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, i think it was mistake i will fix

tokio-util = { version = "0.7", default-features = false, features = ["codec"] }
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true
Expand All @@ -39,6 +42,7 @@ vector-common = { path = "../vector-common", default-features = false }
vector-config = { path = "../vector-config", default-features = false }
vector-config-macros = { path = "../vector-config-macros", default-features = false }
vector-core = { path = "../vector-core", default-features = false, features = ["vrl"] }
toml = "0.9.4"

[dev-dependencies]
futures.workspace = true
Expand All @@ -52,4 +56,4 @@ uuid.workspace = true
vrl.workspace = true

[features]
syslog = ["dep:syslog_loose"]
syslog = ["dep:syslog_loose", "dep:strum", "dep:derive_more", "dep:serde-aux"]
2 changes: 2 additions & 0 deletions lib/codecs/src/encoding/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod native;
mod native_json;
mod protobuf;
mod raw_message;
mod syslog;
mod text;

use std::fmt::Debug;
Expand All @@ -28,6 +29,7 @@ pub use native::{NativeSerializer, NativeSerializerConfig};
pub use native_json::{NativeJsonSerializer, NativeJsonSerializerConfig};
pub use protobuf::{ProtobufSerializer, ProtobufSerializerConfig, ProtobufSerializerOptions};
pub use raw_message::{RawMessageSerializer, RawMessageSerializerConfig};
pub use syslog::{SyslogSerializer, SyslogSerializerConfig};
pub use text::{TextSerializer, TextSerializerConfig};
use vector_core::event::Event;

Expand Down
Loading
Loading