Setup Doc: Web Applications — Centralized Logging and Monitoring with Graylog
Graylog3 GitHub Link: GitHub - hariom282538/graylog-content-pack-haproxy-json: A Content Pack for Graylog2/Graylog3 which supports HTTP Real-Time logging and Monitoring from HAProxy[1.5/1.8].
Graylog2 GitHub Link: GitHub - hariom282538/graylog-content-pack-haproxy-json at graylog2_contentPack
This content pack includes following configurations for one click setup:
- JSON Logging
- HTTP Access/Request/Captured Log
- Inputs
- HaProxy log - Syslog UDP
- Extractors
- Extract JSON fields
- Empty JSON field
- Reduced message to path
- HTTP Method from haproxy_httpRequest
- HTTP URI from haproxy_httpRequest
- HTTP Request Protocol version from haproxy_httpRequest
- Empty haproxy_httpRequest Field
- Removing parenthesis from haproxy_capturedRequestHeaders
- Host Extraction from Captured HTTP Request
- User Agent Extraction from Captured HTTP Request
- HTTP Referer Extraction from Captured HTTP Request
- HTTP XForwardedFor Extraction from Captured HTTP Request
- Browser Extraction from haproxy_capturedHttpRequestUserAgent
- Streams
- HAProxy
- HAProxy HTTP 4XX
- HTTP HTTP 5XXs
- Dashboards
- Requests last 24h (Count)
- Requests last 24h (Histogram)
- HTTP 4XXs last 24h(Count)
- HTTP 4XXs last 24h (Histogram)
- HTTP 5XXs last 24h (Count)
- HTTP 5XXs last 24h (Histogram)
- Map of requests last 24h (World Map)
- Top 5 countries with Most Requests last 24h (pie with table)
- Frontend Connection Graph: Last 7 days (Field Graph)
- Requests per HTTP Methods: last 24h (pie with table)
- Response codes last 24h (pie with table)
- Top 10 Most Requested Domains : 24h (pie with table)
- Top 10 URLs with most requests : last 24h (pie with table)
- Top 10 IPs with Most Requests last 24h (pie with table)
- Top Hourly backends(pie with table)
- Top 10 Browsers with most requests : 24h (pie with table)
- Average Request Time (in ms) last 24 h (count)
- Average Request Size (in bytes) last 24 h (count)
- Time/Size last 24h (combined graph)
- Response size (bytes) last 24h (Line Graph)
- Response Time (ms) last 24h (Line Graph)