# How to set @timestamp in Filebeat?

**URL:** <https://discuss.elastic.co/t/how-to-set-timestamp-in-filebeat/268804>\
**Category:** Beats\
**Created:** [March 30, 2021, 2:32pm UTC](https://discuss.elastic.co/t/how-to-set-timestamp-in-filebeat/268804 "2021-03-30T14:32:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [March 30, 2021, 2:32pm UTC](https://discuss.elastic.co/t/how-to-set-timestamp-in-filebeat/268804/1 "2021-03-30T14:32:14Z")

</div>

Hi thanks for the wonderful elastic stack! I need to set @timestamp in Filebeat.

I have seen [this](https://discuss.elastic.co/t/setting-timestamp-in-filebeat/136224) and [this](https://github.com/elastic/beats/issues/7351). But they seems to be outdated and no updates ☹

---

<div class="post-metadata">

**Author:** ![fzyzcjy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fzyzcjy/32/78628_2.png) [@fzyzcjy](https://discuss.elastic.co/u/fzyzcjy)\
**Post date:** [March 31, 2021, 12:14am UTC](https://discuss.elastic.co/t/how-to-set-timestamp-in-filebeat/268804/2 "2021-03-31T00:14:06Z")

</div>

ok I see:

```auto
        - timestamp:
            # ... By default the timestamp processor writes the parsed result to the @timestamp field. ...
            # https://www.elastic.co/guide/en/beats/filebeat/current/processor-timestamp.html
            field: 'front_log.timestamp'
            layouts:
              - '2006-01-02T15:04:05.999999Z'
            test:
              - '2021-03-25T06:40:58.498982Z'
        - drop_fields:
            fields:
              - 'front_log.timestamp'

```

---

<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:** [April 28, 2021, 12:15am UTC](https://discuss.elastic.co/t/how-to-set-timestamp-in-filebeat/268804/3 "2021-04-28T00:15:00Z")

</div>

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