Skip to content

Commit d2416a3

Browse files
committed
modify ingest timestamp format check to remove timezone
1 parent b690670 commit d2416a3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

qa/smoke-test-ingest-with-all-dependencies/src/test/resources/rest-api-spec/test/ingest/60_pipeline_timestamp_date_mapping.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,23 @@
2424
"value": "{{ _ingest.timestamp }}"
2525
}
2626
},
27+
{
28+
"grok" : {
29+
"field" : "my_time",
30+
"patterns": ["%{DAY:day} %{MONTH:month} %{MONTHDAY:monthday} %{TIME:time} %{TZ} %{YEAR:year}"]
31+
}
32+
},
33+
{
34+
"set": {
35+
"field": "my_time",
36+
"value": "{{day}} {{month}} {{monthday}} {{time}} {{year}}"
37+
}
38+
},
2739
{
2840
"date" : {
2941
"field" : "my_time",
3042
"target_field": "my_time",
31-
"formats": ["EEE MMM dd HH:mm:ss zzz yyyy"]
43+
"formats": ["EEE MMM dd HH:mm:ss yyyy"]
3244
}
3345
}
3446
]

0 commit comments

Comments
 (0)