# Logstash - Syslog Timestamp

**URL:** <https://discuss.elastic.co/t/logstash-syslog-timestamp/353719>\
**Category:** Logstash\
**Created:** [February 20, 2024, 6:15pm UTC](https://discuss.elastic.co/t/logstash-syslog-timestamp/353719 "2024-02-20T18:15:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [February 20, 2024, 6:15pm UTC](https://discuss.elastic.co/t/logstash-syslog-timestamp/353719/1 "2024-02-20T18:15:30Z")

</div>

Hello,

I am attempting to parse out a timestamp from syslog. The timestamp comes out to  
`2024-02-04 02:04:03+00:00`

Using the date filter how would I be able to take into account the suffix "`+00:00`"

---

<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:** [February 20, 2024, 9:38pm UTC](https://discuss.elastic.co/t/logstash-syslog-timestamp/353719/2 "2024-02-20T21:38:10Z")

</div>

Try

```auto
date {
        match => ["message", "yyyy-MM-dd HH:mm:ssZZ"]
       # target => "@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:** [March 19, 2024, 9:38pm UTC](https://discuss.elastic.co/t/logstash-syslog-timestamp/353719/3 "2024-03-19T21:38:35Z")

</div>

Closed on March 19, 2024, 9:38pm UTC

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