# How to get creation timestamp of input file

**URL:** https://discuss.elastic.co/t/how-to-get-creation-timestamp-of-input-file/328533
**Category:** Logstash
**Created:** [March 25, 2023, 11:44pm UTC](https://discuss.elastic.co/t/how-to-get-creation-timestamp-of-input-file/328533 "2023-03-25T23:44:36Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [March 29, 2023, 8:04am UTC](https://discuss.elastic.co/t/how-to-get-creation-timestamp-of-input-file/328533/3 "2023-03-29T08:04:11Z")

</div>

You should use ruby, a similar sample is [here](https://discuss.elastic.co/t/index-csv-timestamp/324579/3)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-get-creation-timestamp-of-input-file/328533)._
