hi,
i am using below key config for catch http status codes. when I click to update getting below error. when I use a simple recex code ("\s\d\d\d\s" ) configuration updated succesfully.
key = log[/var/log/httpd/access_log,"^(\S*).*\[(.*)\]\s"(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s"([^"]*)",,,skip,\6,,]
error = Invalid key "log[/var/log/httpd/access_log,"^(\S*).*\[(.*)\]\s"(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s"([^"]*)",,,skip,\6,,]" for item "log-apache-http-status-codes" on "LNX-zbxaph01.eduenv.com": incorrect syntax near "(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s" ...".
regex code working without any problem at regex101.com.
i am using below key config for catch http status codes. when I click to update getting below error. when I use a simple recex code ("\s\d\d\d\s" ) configuration updated succesfully.
key = log[/var/log/httpd/access_log,"^(\S*).*\[(.*)\]\s"(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s"([^"]*)",,,skip,\6,,]
error = Invalid key "log[/var/log/httpd/access_log,"^(\S*).*\[(.*)\]\s"(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s"([^"]*)",,,skip,\6,,]" for item "log-apache-http-status-codes" on "LNX-zbxaph01.eduenv.com": incorrect syntax near "(\S*)\s(\S*)\s([^"]*)"\s(\S*)\s(\S*)\s"([^"]*)"\s" ...".
regex code working without any problem at regex101.com.
.
Comment