Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 1.59 KB

2016-02-25-apache-logs.md

File metadata and controls

28 lines (24 loc) · 1.59 KB
layout title categories author lang sitemap redirect_to
redirected
Sending Apache Access Logs in PaaS Logs
Logs
Babacar Diassé
en
false

DISCLAIMER

The following procedure have the advantage to be setup very quickly but is NOT recommended at all in production as it can block the Apache process in case of heavy traffic.

In production, please use a non blocking solution as this one: Shipping logs to PaaS Logs with Filebeat

Apache access logs are very valuable. They show the activity of your visitors, the page delivery time, the code results, the user agent that accessed your websites. The default log line looks like this

51.255.160.250 - - [23/Jan/2016:19:33:03 +0100] "GET / HTTP/1.1" 200 14211 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7"

This is already giving a lot of information but it can be troublesome to extract really useful data from plain text logs. You maybe know that there is a already lot of ways to export your Apache logs: logstash, beats, graylog-collector, syslog-ng, rsyslog, gelf apache module. But as we have still a lot to explore in the PaaS Logs, let's start with something simple :-). This tutorial will present you the less intrusive way to log to PaaS Logs : ask Apache to pipe log entries directly to PaaS Logs.