Hi guys
I find a question about Can date ingest processor process a String to extract a Date from it.
And i follow the guide and use Date Processor, but my log message is complex
2017-12-13 11:10:30.000 [pool-10-thread-7] DEBUG c.h.i.c.m.servicemanager.task.PassiveNodeHbTask - PassiveNodeHbTask started
And in order to use Date Processor i have to use Grok Processor to extract date as a new field such as
PUT _ingest/pipeline/java-pipeline
{
"description" : "describe pipeline",
"processors" : [
{
"grok": {
"field": "message",
"patterns": ["%{TIMESTAMP_ISO8601:logatime}"]
},
"date" : {
"field" : "logatime",
"target_field": "@timestamp",
"formats" : ["yyyy-MM-dd HH:mm:ss.SSS"],
"timezone": "Asia/Shanghai"
},
"remove": {
"field": "logatime"
}
}
]
}
But in this way , i will add an useless field ------ logatime
I don't want to add this field if possibile
So can date ingest processor process a complex String to extract a Date from it.