Skip to content

Commit 160dec4

Browse files
add time field names to the list (#1244)
add below field names to the list ``` "time","date","timestamp","created","received","ingested", "collected","start","end","ts", "dt" ``` this list help catch most standard timestamp field names commonly used across various systems help transform the data type to TimeStamp --------- Signed-off-by: Nikhil Sinha <[email protected]>
1 parent e7699c8 commit 160dec4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/event/format/mod.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,19 @@ use super::{Event, DEFAULT_TIMESTAMP_KEY};
4040

4141
pub mod json;
4242

43-
static TIME_FIELD_NAME_PARTS: [&str; 2] = ["time", "date"];
43+
static TIME_FIELD_NAME_PARTS: [&str; 11] = [
44+
"time",
45+
"date",
46+
"timestamp",
47+
"created",
48+
"received",
49+
"ingested",
50+
"collected",
51+
"start",
52+
"end",
53+
"ts",
54+
"dt",
55+
];
4456
type EventSchema = Vec<Arc<Field>>;
4557

4658
/// Source of the logs, used to perform special processing for certain sources

0 commit comments

Comments
 (0)