# Add current time in logstash, when logs flow from filebeat -\> logstash -\> ES

**URL:** https://discuss.elastic.co/t/add-current-time-in-logstash-when-logs-flow-from-filebeat-logstash-es/162995
**Category:** Logstash
**Created:** [January 4, 2019, 5:52pm UTC](https://discuss.elastic.co/t/add-current-time-in-logstash-when-logs-flow-from-filebeat-logstash-es/162995 "2019-01-04T17:52:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chaitra\_Ranganna](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chaitra\_Ranganna](https://discuss.elastic.co/u/Chaitra_Ranganna)
#### Post date: [January 4, 2019, 5:52pm UTC](https://discuss.elastic.co/t/add-current-time-in-logstash-when-logs-flow-from-filebeat-logstash-es/162995/1 "2019-01-04T17:52:08Z")

</div>

Hi,

We are pushing logs using below ELK stack  
filebeat -\> logstash -\> ES

we would like to add a field when filebeat sees logs, when logstash sees the logs.  
I understand filebeat already adds @timestamp by this we can know when filebeat read the logs.

But when logs reach logstash how do I get the current time so that I can add new field "ls-timestamp" to indicate when logs were received by logstash.

Reagrds  
Chaitra

---

<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: [February 1, 2019, 5:52pm UTC](https://discuss.elastic.co/t/add-current-time-in-logstash-when-logs-flow-from-filebeat-logstash-es/162995/2 "2019-02-01T17:52:16Z")

</div>

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