Here ,i am using a log file but i am not able to understand why the grok is working can anyone please explain me this .
MY ACCESS LOG IS:-
184.252.108.229 - - [20/Sep/2017:13:22:22 +0200] "GET /css/style.css HTTP/1.1" 200 11679 "https://codingexplained.com/products/view/123" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"
AND THE CONFIGURATION FILE WHICH I AM USING IS:-
input
{
file {
path=>"E:/kibana/logstash-7.1.1/logstash-7.1.1/data/event-data/apache_access.log"
type => "apache-access"
start_position => "beginning"
}
http {
host => "127.0.0.1"
port => 8080
}
}
filter
{
**grok{**
** match => { "message" => '%{HTTPD_COMMONLOG} "%{GREEDYDATA:referrer}" "%{GREEDYDATA:agent}"' } **
** }**
}
output
{
stdout{
codec=>rubydebug
}
}
(PLEASE HELP ME OUT OF THIS)