initial commit
This commit is contained in:
commit
429a176559
59 changed files with 4097 additions and 0 deletions
5
content/2013/11/07/_index.md
Normal file
5
content/2013/11/07/_index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
transparent = true
|
||||
sort_by = "date"
|
||||
paginate_by = 5
|
||||
+++
|
|
@ -0,0 +1,17 @@
|
|||
+++
|
||||
title = "Redirecting apache access_log and error_log to the systemd journal"
|
||||
date = 2013-11-07T10:03:38+00:00
|
||||
+++
|
||||
To redirect all apache messages to syslog, which will then appear in the systemd
|
||||
journal modify your httpd.conf:
|
||||
|
||||
<!-- more -->
|
||||
|
||||
```properties
|
||||
CustomLog "|/bin/logger -t access_log -p user.info" "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""``
|
||||
ErrorLog syslog:user
|
||||
```
|
||||
|
||||
Of course it would be much nicer, if apache actually could use the journal directly.
|
||||
|
||||
\[Edit\]: Apparently with apache 2.5, there will be a [mod\_journald](http://httpd.apache.org/docs/trunk/mod/mod_journald.html) :\-)
|
Loading…
Add table
Add a link
Reference in a new issue