# Use current time / system time in logstash file output?

**URL:** <https://discuss.elastic.co/t/use-current-time-system-time-in-logstash-file-output/182644>\
**Category:** Logstash\
**Created:** [May 24, 2019, 12:19pm UTC](https://discuss.elastic.co/t/use-current-time-system-time-in-logstash-file-output/182644 "2019-05-24T12:19:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bjosve](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bjosve](https://discuss.elastic.co/u/bjosve)\
**Post date:** [May 27, 2019, 9:03am UTC](https://discuss.elastic.co/t/use-current-time-system-time-in-logstash-file-output/182644/5 "2019-05-27T09:03:29Z")

</div>

Hi logger,

> [@logger](#):
>
> It uses always the time from the system. so it uses the actual date and time. why cant you use the date filter?

Well, not really... Read Magnus answer in this thread,

[https://discuss.elastic.co/t/add-field-timestamp-with-current-time/59862](https://discuss.elastic.co/t/add-field-timestamp-with-current-time/59862)

I will try a ruby filter.

---

_[View the full topic](https://discuss.elastic.co/t/use-current-time-system-time-in-logstash-file-output/182644)._
