My first purpose is to parse a custom Apache2 access log.
"Custom" means that I only have added a field to the Apache2 Combined Log format.
This filed, added for performance monitoring, is numeric and represent the time taken to serve the request, in microseconds (see "%d" in http://httpd.apache.org/docs/current/mod/mod_log_config.html#customlog.
Without this filed, the log is parsed correctly using the pattern %{COMBINEDAPACHELOG}.
Since COMBINEDAPACHELOG is equal to "HTTPD_COMBINEDLOG %{HTTPD_COMMONLOG} %{QS:referrer} %{QS:agent}", and my custom filed is located before the "referre" filed, I've tryed to parse my custom log with: "HTTPD_COMBINEDLOG %{HTTPD_COMMONLOG} %{NUMBER:reqtime} %{QS:referrer} %{QS:agent}" where reqtime is my numeric new field.
*** This results in a grok error ***
An example line to parse is:
62.101.84.10 - - [11/Apr/2019:16:39:00 +0200] "POST /SedaOnlineMultiWS/rs/mandato/revoca HTTP/1.1" 200 137 180388 "-" "Apache-HttpClient/4.3.1 (java 1.5)"
I found the reason!
I sayd that I'm new to this technology end ... in fact ... i didi't started logstash whith "--config.reload.automatic" option so every change I made to config file wasn't effective .
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.