Hi! I’m new to graylog. I have set up Graylog 2.4.3 on Ubuntu 16.04. I have two inputs created - one of them receives nginx access logs, the other one nginx error logs. Everything works fine, Graylog is receiving all logs.
But as our nginx access logs includes lot of http requests, I want to find any plugin compatible with graylog, so I can easily search and find for like:
Currently at work I’m working on something much different than Graylog, so I think my brains will explode if I will tray to do something with extractors…
Maybe someone would help me. I have uploaded screenshot where you can see how our logs looks like. Our main needs is to extract IP address (starting at 212) and web link (starting at https://e), and then use them to search for top visitors and most visited web pages. Thanks a lot!
As @jochen said, there are a few nginx Content Packs on the Marketplace which will give you some useful extractors. However, let me suggest the JSON Nginx content pack, assuming your Nginx version is >=1.11.8.
You simply define a log_format in the nginx config with the nginx fields you want to include and the included extractors will put everything into searchable fields, much more reliably than using regex’s on the Graylog side.