I hope someone can guide me as for date parsing.
Logstash config has below date format.
date {
match => [ "@date", "yyyy-MM-dd HH:mm:ss Z" ]
}
But, I am getting below error...
"status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [date]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: "2018-05-04 03:55:30 +0000" is malformed at " 03:55:30 +0000""}}}}}
When I run manually, I received the output as below.
"date" => "2018-05-04 03:55:30 +0000",
"bytes_written_to_client" => "4933",
"srcip" => "x.x.x.x",
"dstport" => "443",
"bytes_written_to_server" => "3303",
"pid" => "18895",
"type" => "t_nettraffic",
"hostname" => "FIREWALLONE",
"host" => "10.10.10.10",
"devname" => "FIREWALL1",
"dstip" => "x.x.x.x",
"event" => "session end",
"rule_name" => "TEST RULE",
"pri" => "p_major",
"priority" => "45",
"dst_geo" => "XX",
"srczone" => "VL_SOURCE",
"start_time" => "2018-05-04 03:54:25 +0000",
"@timestamp" => 2018-05-04T03:55:30.167Z,
"application" => "TCP 443",
"proto" => "6",
"srcport" => "57878",
"dstzone" => "VLEXT",
"logid" => "0",
"cmd" => "httpp"