Add the time of the date type to the ES mapping. "time" indicates the last update time of the job.
Signed-off-by: Wu Zhende wuzhende666@163.com --- sbin/es-jobs-mapping.sh | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/sbin/es-jobs-mapping.sh b/sbin/es-jobs-mapping.sh index 502e099..9926fd8 100755 --- a/sbin/es-jobs-mapping.sh +++ b/sbin/es-jobs-mapping.sh @@ -88,6 +88,9 @@ else "errid": { "type": "text" }, + "time": { + "type": "date" + }, "category": { "type": "keyword" },