#!/usr/bin/env bash
curl -XPUT http://10.0.0.165:9200/_ingest/pipeline/storagetime -d ‘{
“description”: “use to add timestamp”,
“processors”: [
{
“set”: {
“field”: “storageTime”,
“value”: “{{_ingest.timestamp}}”
}
}
]
}’
curl -H “Content-Type: application/json” -XPUT http://10.0.0.128:9200/_ingest/pipeline/storagetime -d ‘{
“description”: “use to add timestamp”,
“processors”: [
{
“set”: {
“field”: “storageTime”,
“value”: “{{_ingest.timestamp}}”
}
}
]
}’