Create pipline


(fangfu) #1

input data format
{
date:"1550391413",
value:"1"
}

create pipline Automatically creates the day index,
Can be guided under if written.

Online reference,How to convert timestamp?,thank you

curl -X PUT
http://your-elasticsearch.here:9200/_ingest/pipeline/uint-pipeline
-H 'content-type:application/json'
-d '{
"description": "daily uint index naming",
"processors": [
{
"date_index_name": {
"field": "clock",
"date_formats": ["UNIX"],
"index_name_prefix": "uint-",
"date_rounding": "d"
}
}
]
}'


(fangfu) #2

The format I want

index:unit-20190217
{
date:"1550391413",
value:"1"
}
index:unit-20190218
{
date:"1550477813",
value:"1"
}
...


(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.