title: Logstash date parsing error
body: <p>Summary: I have my log with the date format as shown :</p>
  
  <pre><code>2013/05/09-05:19:16.772
  </code></pre>
  
  <p>Now I want to use logstash and send these logs to elastic search. But the problem is that I want that the timestamp value should be that of the logs and not the current time.</p>
  
  <p>Therefore, I have written the following. This fails saying this:</p>
  
  <pre><code>Invalid format: "2013/05/09-05:19:16.876" is malformed at "/05/09-05:19:16.876", :backtrace=&gt;["org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:866)"
  </code></pre>
  
  <p>My conf file is:</p>
  
  <pre class="lang-rb prettyprint-override"><code>input {
    stdin {
        type =&gt; "stdin-type"
    }
  }
  
  filter {
    grok {
      type =&gt; "stdin-type"
      patterns_dir=&gt;["./patterns"]
      pattern =&gt; "%{PARSE_ERROR}"
      add_tag=&gt;"%{type1},%{type2},%{slave},ERR_SYSTEM"
    }
  
    date {
      type =&gt; "stdin-type"
      match=&gt;["ts","yyyy/mm/dd-HH:mm:ss.SSS"]
      locale=&gt;"en"
    }
  
    mutate {
      type=&gt;"stdin-type"
      replace =&gt; ["@message", "%{message}" ]
      replace =&gt; ["@timestamp", "%{ts}" ]
    }
  }
  
  output {
    stdout { debug =&gt; true debug_format =&gt; "json"}
    elasticsearch { }
  }
  </code></pre>
  
  <p>I am really stuck here.
  Need some expert help.</p>
  
  <p>Thanks.</p>