Alvin82  
                
                  
                    November 19, 2015,  1:08pm
                   
                  1 
               
             
            
              I'm using date plugin, but i'm not able to match this timestamp
log_ts = 2015-11-19-11:14:23.8704
If i use this snippet code in the conf file
 date {
         match => ["log_ts", "yyyy-MM-dd-HH:mm:ss.SSSS"]
}
I obtain this exception
arsing_exception", "reason"=>"failed to parse [log_ts]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2015-11-19-11:14:23.8704\" is malformed at \"-11:14:23.8704\""}}}}, :level=>:warn, :file=>"logstash/outputs/elasticsearch.rb", :line=>"369", :method=>"submit"}
Why i have this error?How can i match that timestamp?
             
            
              
            
           
          
            
            
              Works fine for me (Logstash 1.5.3):
$ cat test.config 
input { stdin { } }
output { stdout { codec => "rubydebug" } }
filter {
  date {
    match => ["message", "yyyy-MM-dd-HH:mm:ss.SSSS"]
  }
}
$ echo '2015-11-19-11:14:23.8704' | /opt/logstash/bin/logstash -f test.config
Logstash startup completed
{
       "message" => "2015-11-19-11:14:23.8704",
      "@version" => "1",
    "@timestamp" => "2015-11-19T10:14:23.870Z",
          "host" => "lnxolofon"
}
Logstash shutdown completed 
            
              
            
           
          
            
              
                pierre  
              
                  
                    December 15, 2016, 12:57pm
                   
                  3 
               
             
            
              i have this :
filter {
date {
but i have@timestamp ": "2016-12-15T12:41:27.524Z",@version ": "1",@timestamp ": [@timestamp ": [
             
            
              
            
           
          
            
            
              @pierre , please start a new thread for your unrelated question.