You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7bf6130
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/event/format/known_schema.rs
+148-1Lines changed: 148 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,10 @@ pub enum Error {
43
43
"Unsupported log format: '{0}'. This format cannot be parsed by the current version. Please create an issue on our GitHub repository (github.com/parseablehq/parseable) with a sample log event, or reach out in the #support-channel on our Slack community for assistance. Include this error message and your log sample to help us improve compatibility."
44
44
)]
45
45
Unknown(String),
46
+
#[error(
47
+
"Event shape is not supported for known log formats. Expected a JSON object or an array of JSON objects."
48
+
)]
49
+
InvalidShape,
46
50
}
47
51
48
52
/// Deserializes a string pattern into a compiled Regex
@@ -193,6 +197,8 @@ impl EventProcessor {
193
197
/// # Returns
194
198
/// * `Ok` - The original JSON will now contain extracted fields
195
199
/// * `Err(Unacceptable)` - JSON provided is acceptable for the known format
200
+
/// * `Err(Unknown)` - `log_source` is not a known format
201
+
/// * `Err(InvalidShape)` - JSON is neither an object nor an array
0 commit comments