# Can logstash use syslog time as @timestamp

**URL:** <https://discuss.elastic.co/t/can-logstash-use-syslog-time-as-timestamp/218270>\
**Category:** Logstash\
**Created:** [February 7, 2020, 3:46am UTC](https://discuss.elastic.co/t/can-logstash-use-syslog-time-as-timestamp/218270 "2020-02-07T03:46:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amhulli](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@amhulli](https://discuss.elastic.co/u/amhulli)\
**Post date:** [February 7, 2020, 3:46am UTC](https://discuss.elastic.co/t/can-logstash-use-syslog-time-as-timestamp/218270/1 "2020-02-07T03:46:17Z")

</div>

We have a server that is currently not forwarding logs for ingesting into elasticsearch. We are about to change that but want to ingest an existing year's worth of logs first.  
So that we can run time based searches in kibana, we would like the @timestamp to reflect the syslog\_timestamp rather than the time logstash processed the file which I believe is the default. Is this possible and if so, can someone please give me a hint about how. Much appreciate any assistance with this.  
Regards, Andrew.

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [February 7, 2020, 6:41am UTC](https://discuss.elastic.co/t/can-logstash-use-syslog-time-as-timestamp/218270/2 "2020-02-07T06:41:39Z")

</div>

Hi @amhulli - I believe we had related topics around this - for example [here](https://discuss.elastic.co/t/in-logstash-replace-elasticsearchs-timestamp-with-logs-time/140848). The idea would be to use the [date filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html).

I hope that helps.

---

<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:** [March 6, 2020, 6:41am UTC](https://discuss.elastic.co/t/can-logstash-use-syslog-time-as-timestamp/218270/3 "2020-03-06T06:41:44Z")

</div>

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