1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-09-19 21:50:36 +00:00

Install httpd and tail access_log with fluentd

This commit is contained in:
Kris Lamoureux 2020-02-11 16:25:20 -05:00
parent 5a6f09789c
commit 57d258cb35
Signed by: kris
GPG Key ID: A30022791E1719A4
3 changed files with 17 additions and 0 deletions

5
Vagrantfile vendored
View File

@ -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

View File

@ -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

View File

@ -5,6 +5,8 @@ services:
fluentd:
build: ./fluentd
restart: always
volumes:
- /var/log:/var/log/hostlogs
networks:
- graylog
ports: