The value value of [@metadata][test] is 2022-05-24T08:50:05.000Z , but using the corresponding regular expression causes an error
error msg is
Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \t\r\n], "#", "-", [0-9], [A-Za-z_], '"', "'", "}" at line 156, column 3 (byte 5114) after filter
My regEx is [^0-9^A-][0-9][0-9A-Z]+
and this is my gsub
// gsub => {
[ "[@metadata][test]", "[^0-9A-][0-9][0-9A-Z]+", ""]
}
And I want to change the value to YYYY-MM-dd format, is there a better way?
What is the complete error message and what is the logstash configuration file?