Skip to content

Commit 21f15cb

Browse files
add time field names to the list
add below field names to the list ``` "time","date","timestamp","created","received","ingested", "collected","start","end","event","log","ts", "dt" ``` this list help catch most standard timestamp field names commonly used across various systems help transform the data type to TimeStamp
1 parent 4ef2c32 commit 21f15cb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/event/format/mod.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,21 @@ 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; 13] = [
44+
"time",
45+
"date",
46+
"timestamp",
47+
"created",
48+
"received",
49+
"ingested",
50+
"collected",
51+
"start",
52+
"end",
53+
"event",
54+
"log",
55+
"ts",
56+
"dt",
57+
];
4458
type EventSchema = Vec<Arc<Field>>;
4559

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

0 commit comments

Comments
 (0)