# Define the type of a date -logstash

**URL:** <https://discuss.elastic.co/t/define-the-type-of-a-date-logstash/94931>\
**Category:** Logstash\
**Created:** [July 28, 2017, 10:06am UTC](https://discuss.elastic.co/t/define-the-type-of-a-date-logstash/94931 "2017-07-28T10:06:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marwa](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@marwa](https://discuss.elastic.co/u/marwa)\
**Post date:** [July 28, 2017, 10:06am UTC](https://discuss.elastic.co/t/define-the-type-of-a-date-logstash/94931/1 "2017-07-28T10:06:51Z")

</div>

hi i trying to load csv file from logstash to elasticsearch.this is a sample of the structure of my data

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/5/35bd06e4989c364532c33ff8d446b8eb8f30b3c1.png)transaction\_date,customer\_name,product\_name,product\_id,price\_unit,quantity,fidelity\_card\_id,discount  
2-24-2017,Roberto Michel,Taillefine aux fruits 0% Fraise - Danone - 500 g (4 x 125Â g),1,556.26,256,4.175E+15,9  
because by default , every field will be stored as string in elasticseach i used mutate convert to change the type of data and date plugin to convert the transaction\_date from string into date .everything went well without the date plugin but when i add it an error appear

this a sample of the filter

filter {  
csv {  
separator =\> ","  
#transaction\_date,customer\_name,product\_name,product\_id,price\_unit,quantity,fidelity\_card\_id,discount  
columns =\> ["transaction\_date","customer\_name","product\_name","product\_id","price\_unit","quantity","fidelity\_card\_id","discount"]  
}  
mutate {  
convert =\>{"discount" =\> "integer" }  
convert =\>{"price\_unit" =\>"float"}  
convert =\>{"product\_id" =\>"integer"}  
convert =\>{"quantity"=\> "integer"}  
}  
date {  
match =\> {"transaction\_date"=\> "MM dd yyyy"}}

}

when i run logstash this error appears  
Cannot create pipeline {:reason=\>"translation missing: en.logstash.agent.configuration.invalid\_plugin\_register"}

please any help how could i fix this !!!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 5, 2017, 7:54pm UTC](https://discuss.elastic.co/t/define-the-type-of-a-date-logstash/94931/2 "2017-08-05T19:54:44Z")

</div>

Are you sure that's the only error message? There should be more details in the surrounding lines.

---

<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:** [September 2, 2017, 7:54pm UTC](https://discuss.elastic.co/t/define-the-type-of-a-date-logstash/94931/3 "2017-09-02T19:54:51Z")

</div>

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