Skip to content

Instantly share code, notes, and snippets.

@quoeamaster
Created December 5, 2019 07:50
Show Gist options
  • Select an option

  • Save quoeamaster/d6094cff0bd160fa25d01c8d04c8bd9c to your computer and use it in GitHub Desktop.

Select an option

Save quoeamaster/d6094cff0bd160fa25d01c8d04c8bd9c to your computer and use it in GitHub Desktop.
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