##注意 ingets需要开启
PUT _ingest/pipeline/my_timestamp_pipeline
{
"description": "Adds a field to a document with the time of ingestion",
"processors": [
{
"set": {
"field": "ingest_timestamp",
"value": "{{_ingest.timestamp}}"
}
}
]
}
PUT pa_log_clean_with_time
{
"settings": {
"default_pipeline": "my_timestamp_pipeline"
}
}