ES version: 6.8.6
use something like this
GET _search
{
"query": {
"regexp": {
"message": ".*error.*"
}
}
}
I can get some result, for example
{
"_index" : "filebeat-6.8.6-2020.08.13",
"_type" : "doc",
"_id" : "kiZ45nMBmMXSaaD4Zncy",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2020-08-13T06:18:35.468Z",
"offset" : 19074,
"message" : "[22:44:03] [ERROR] COMPILATION ERROR : ",
"projectName" : "test-job-name",
"buildNumber" : "1"
}
}
when I add the '[' charactor in regexp, it doen't return anything.
GET _search
{
"query": {
"regexp": {
"message": ".*\\[error.*"
}
}
}