mirror of
https://github.com/krislamo/graylog_demo
synced 2024-11-09 21:50:35 +00:00
Install httpd and tail access_log with fluentd
This commit is contained in:
parent
5a6f09789c
commit
57d258cb35
5
Vagrantfile
vendored
5
Vagrantfile
vendored
@ -33,6 +33,11 @@ Vagrant.configure("2") do |config|
|
||||
# Convenience
|
||||
yum install -y vim
|
||||
|
||||
# Install apache
|
||||
yum install -y httpd
|
||||
systemctl start httpd
|
||||
systemctl -q enable httpd
|
||||
|
||||
# Install rsyslog
|
||||
yum install -y rsyslog
|
||||
systemctl start rsyslog
|
||||
|
@ -9,6 +9,16 @@
|
||||
tag system
|
||||
</source>
|
||||
|
||||
<source>
|
||||
@type tail
|
||||
path /var/log/hostlogs/httpd/access_log
|
||||
pos_file /var/log/hostlogs/httpd/access_log.pos
|
||||
tag httpd.access
|
||||
<parse>
|
||||
@type apache2
|
||||
</parse>
|
||||
</source>
|
||||
|
||||
<match **>
|
||||
@type gelf
|
||||
host vagrant_graylog_1
|
||||
|
@ -5,6 +5,8 @@ services:
|
||||
fluentd:
|
||||
build: ./fluentd
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/log:/var/log/hostlogs
|
||||
networks:
|
||||
- graylog
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user