Want to capture timeStamp without milliseconds

I get following error:

←[33mFailed parsing date from field {:field=>"timeStamp", :value=>"2015/07/10 05:52:04.586"

I configured as:
mutate {
gsub => ["timeStamp", ".\d{6}", ""]
}
date { match => ["timeStamp", "yyyy/MM/dd HH:mm:ss"]}