# Logstash - problems with date

**URL:** https://discuss.elastic.co/t/logstash-problems-with-date/129084
**Category:** Logstash
**Created:** [April 23, 2018, 11:14am UTC](https://discuss.elastic.co/t/logstash-problems-with-date/129084 "2018-04-23T11:14:57Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Jenni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenni/32/29684_2.png) [@Jenni](https://discuss.elastic.co/u/Jenni)
#### Post date: [April 25, 2018, 10:16am UTC](https://discuss.elastic.co/t/logstash-problems-with-date/129084/11 "2018-04-25T10:16:37Z")

</div>

I did a small test:

**datefailtest.conf:**

```
input { stdin{} }
filter {
    grok {
      match => { "message" => "\[%{GREEDYDATA:logtime}\] %{WORD:status}: %{GREEDYDATA:process}" }
    }
    date {
      timezone => "Europe/Prague"
      match => ["logtime", "yyyy-MM-dd HH:mm:ss"]
      target => "@timestamp"
    }
}
output { stdout{ codec => rubydebug } }

```

**execution:**

> root@elasticsearch-vm:/# /usr/share/logstash/bin/logstash -f "/root/datefailtest.conf" --path.data="/var/lib/logstash-man"  
> Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties  
> The stdin plugin is now waiting for input:  
> [2018-03-28 12:00:21] Processed: shop\Export\Jobs\ExportOrders  
> {  
> "@timestamp" =\> 2018-03-28T10:00:21.000Z,  
> "@version" =\> "1",  
> "message" =\> "[2018-03-28 12:00:21] Processed: shop\Export\Jobs\ExportOrders",  
> "process" =\> "shop\Export\Jobs\ExportOrders",  
> "host" =\> "elasticsearch-vm",  
> "status" =\> "Processed",  
> "logtime" =\> "2018-03-28 12:00:21"  
> }

Please check your ES configuration again and make sure that **_[this](https://discuss.elastic.co/t/mutate-function-not-working-logstash-6-2-4/129067/17)_** is not the reason for your empty output right now.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-problems-with-date/129084)._
