Conver String to date (or replace @timestamp) (SOLVED)

  1. Pick some logstash result

             "@version" => "1",
           "@timestamp" => "20151019-12-31T16:00:00.000Z",
                 "host" => "swagger4es",
                 "path" => "/tmp/test10/HTC.txt",
                 "type" => "json",
             "stock_no" => "2498",
           "stock_name" => "宏達電",
           "stock_date" => "20151020",
    
             "@version" => "1",
           "@timestamp" => "20121216-12-31T16:00:00.000Z",
                 "host" => "swagger4es",
                 "path" => "/tmp/test10/HTC.txt",
                 "type" => "json",
             "stock_no" => "2498",
           "stock_name" => "宏達電",
           "stock_date" => "20121217",
    
             "@version" => "1",
           "@timestamp" => "20121212-12-31T16:00:00.000Z",
                 "host" => "swagger4es",
                 "path" => "/tmp/test10/HTC.txt",
                 "type" => "json",
             "stock_no" => "2498",
           "stock_name" => "宏達電",
           "stock_date" => "20121213",
    
  2. After a while

    retrying failed action with response code: 429 {:level=>:warn}
    retrying failed action with response code: 429 {:level=>:warn}
    retrying failed action with response code: 429 {:level=>:warn}
    retrying failed action with response code: 429 {:level=>:warn}
    retrying failed action with response code: 429 {:level=>:warn}
    too many attempts at sending event. dropping: 20141112-12-31T16:00:00.000Z swagger4es 2498 宏達電

    20141113 136.09 139.07 136.09 137.58 7508 1042186 1.0949 0.9042 830352 115003 138.00 138.50 1.0889 0.448 1.666 4616 85.49 - 1 {:level=>:error} 0.61 0.00 0.00 1.50 TSE
    too many attempts at sending event. dropping: 20141116-12-31T16:00:00.000Z swagger4es 2498 宏達電 20141117 139.07 139.07 135.60 136.59 5245 723879 -0.7220 0.6317 830352 114173 137.00 137.50 -0.7246 0.450 1.090 3439 84.88 - 1 {:level=>:error} 0.61 0.00 0.00 -1.00 TSE
    too many attempts at sending event. dropping: 20141120-12-31T16:00:00.000Z swagger4es 2498 宏達電 20141121 136.09 136.59 134.60 134.60 3257 443501 -1.0949 0.3922 830352 112512 135.50 136.00 -1.1009 0.434 0.609 2147 83.64 - 1 {:level=>:error} 0.60 0.00 0.00 -1.50

Kibana (index pattern: logstash-*)