Created
December 5, 2019 07:50
-
-
Save quoeamaster/d6094cff0bd160fa25d01c8d04c8bd9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUT _ingest/pipeline/func_add_last_update_time | |
| { | |
| "version": 1, | |
| "description": "any stage: add back last update timestamp using script approach", | |
| "processors": [ | |
| { | |
| "script": { | |
| "lang": "painless", | |
| "source": """ | |
| ctx.last_update_time = new Date(); | |
| """ | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment