title: Logstash converting date to valid joda time (@timestamp)
body: <p>Hope someone can help me out!</p>
  
  <p>I have a question about logstash. I grok the following date with succes: 26/Jun/2013:14:00:26 +0200</p>
  
  <p>Next, I want this date to be used as the @timestamp of the event. As you know logstash automatically adds a timestamp.</p>
  
  <p>Replacing the timestamp that logstash is adding can be done by the date filter. I have added the following date filter: match => [ "date", "dd/MMM/YYYY:HH:mm:ss Z"]</p>
  
  <p>But, for some reason, that doesn't work. When I test it out, I see that logstash just adds his own timestamp. </p>
  
  <p>Code:</p>
  
  <pre><code>grok {
      type =&gt; "log-date"
      pattern =&gt; "%{HTTPDATE:date}"
  }
  
  date{
      type =&gt; "log-date"
      match =&gt; [ "date", "dd/MMM/YYYY:HH:mm:ss Z"]
  }
  </code></pre>
  
  <p>I need to do this, so I can add events to elasticsearch.</p>
  
  <p>Thanks in advance!</p>