# Create pipline

**URL:** <https://discuss.elastic.co/t/create-pipline/168718>\
**Category:** Elasticsearch\
**Created:** [February 17, 2019, 8:21am UTC](https://discuss.elastic.co/t/create-pipline/168718 "2019-02-17T08:21:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangfhm](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@fangfhm](https://discuss.elastic.co/u/fangfhm)\
**Post date:** [February 17, 2019, 8:21am UTC](https://discuss.elastic.co/t/create-pipline/168718/1 "2019-02-17T08:21:50Z")

</div>

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](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"  
}  
}  
]  
}'

---

<div class="post-metadata">

**Author:** ![fangfhm](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@fangfhm](https://discuss.elastic.co/u/fangfhm)\
**Post date:** [February 17, 2019, 8:24am UTC](https://discuss.elastic.co/t/create-pipline/168718/2 "2019-02-17T08:24:50Z")

</div>

The format I want

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 17, 2019, 8:24am UTC](https://discuss.elastic.co/t/create-pipline/168718/3 "2019-03-17T08:24:55Z")

</div>

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