Commit bf8eec8 1 parent 0833623 commit bf8eec8 Copy full SHA for bf8eec8
File tree 2 files changed +12
-8
lines changed
website/cue/reference/remap/functions
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -80,18 +80,17 @@ remap: functions: parse_nginx_log: {
80
80
)
81
81
"""#
82
82
return : {
83
+ timestamp : " 2021-04-01T13:02:31Z "
84
+ severity : " error "
85
+ pid : 31
86
+ tid : 31
83
87
cid : 1
84
- client : " 172.17.0.1 "
85
- host : " localhost:8081 "
86
88
message : " open() \" /usr/share/nginx/html/not-found\" failed (2: No such file or directory) "
87
- pid : 31
88
- request : " POST /not-found HTTP/1.1 "
89
+ client : " 172.17.0.1 "
89
90
server : " localhost "
90
- severity : " error "
91
- tid : 31
92
- timestamp : ' 2021-04-01T17:02:31Z '
91
+ request : " POST /not-found HTTP/1.1 "
92
+ host : " localhost:8081 "
93
93
}
94
-
95
94
},
96
95
]
97
96
}
Original file line number Diff line number Diff line change @@ -52,34 +52,39 @@ remap: functions: to_timestamp: {
52
52
to_timestamp!("2020-10-21T16:00:00Z")
53
53
"""
54
54
return : " 2020-10-21T16:00:00Z "
55
+ skip_test : true
55
56
},
56
57
{
57
58
title : " Coerce a unix timestamp (integer) to a timestamp "
58
59
source : """
59
60
to_timestamp!(1675968923)
60
61
"""
61
62
return : " 2023-02-09T18:55:23Z "
63
+ skip_test : true
62
64
},
63
65
{
64
66
title : " Coerce a unix timestamp (float) to a timestamp "
65
67
source : """
66
68
to_timestamp!(1675968923.567)
67
69
"""
68
70
return : " 2023-02-09T18:55:23.566999912Z "
71
+ skip_test : true
69
72
},
70
73
{
71
74
title : " Coerce a unix timestamp, in milliseconds, to a timestamp "
72
75
source : """
73
76
to_timestamp!(1676478566639, unit: "milliseconds")
74
77
"""
75
78
return : " 2023-02-15T16:29:26.639Z "
79
+ skip_test : true
76
80
},
77
81
{
78
82
title : " Coerce a unix timestamp, in nanoseconds, to a timestamp "
79
83
source : """
80
84
to_timestamp!(1675968923012312311, unit: "nanoseconds")
81
85
"""
82
86
return : " 2023-02-09T18:55:23.012312311Z "
87
+ skip_test : true
83
88
},
84
89
]
85
90
}
You can’t perform that action at this time.
0 commit comments