1. ##注意 ingets需要开启
    2. PUT _ingest/pipeline/my_timestamp_pipeline
    3. {
    4. "description": "Adds a field to a document with the time of ingestion",
    5. "processors": [
    6. {
    7. "set": {
    8. "field": "ingest_timestamp",
    9. "value": "{{_ingest.timestamp}}"
    10. }
    11. }
    12. ]
    13. }
    14. PUT pa_log_clean_with_time
    15. {
    16. "settings": {
    17. "default_pipeline": "my_timestamp_pipeline"
    18. }
    19. }