# Read a date of a file to add this property in Logstash to send a ElasticSearch

**URL:** https://discuss.elastic.co/t/read-a-date-of-a-file-to-add-this-property-in-logstash-to-send-a-elasticsearch/335359
**Category:** Logstash
**Created:** [June 6, 2023, 2:13pm UTC](https://discuss.elastic.co/t/read-a-date-of-a-file-to-add-this-property-in-logstash-to-send-a-elasticsearch/335359 "2023-06-06T14:13:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)
#### Post date: [June 27, 2023, 6:52pm UTC](https://discuss.elastic.co/t/read-a-date-of-a-file-to-add-this-property-in-logstash-to-send-a-elasticsearch/335359/2 "2023-06-27T18:52:44Z")

</div>

Hello @AlejandroVindel,

Welcome to the community!

Check if this [config](https://discuss.elastic.co/t/how-can-i-set-current-time-in-field/157542/3) makes sense for your use case.

Hope it helps!

---

_[View the full topic](https://discuss.elastic.co/t/read-a-date-of-a-file-to-add-this-property-in-logstash-to-send-a-elasticsearch/335359)._
