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
|
# Convenience
|
||||||
yum install -y vim
|
yum install -y vim
|
||||||
|
|
||||||
|
# Install apache
|
||||||
|
yum install -y httpd
|
||||||
|
systemctl start httpd
|
||||||
|
systemctl -q enable httpd
|
||||||
|
|
||||||
# Install rsyslog
|
# Install rsyslog
|
||||||
yum install -y rsyslog
|
yum install -y rsyslog
|
||||||
systemctl start rsyslog
|
systemctl start rsyslog
|
||||||
|
@ -9,6 +9,16 @@
|
|||||||
tag system
|
tag system
|
||||||
</source>
|
</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 **>
|
<match **>
|
||||||
@type gelf
|
@type gelf
|
||||||
host vagrant_graylog_1
|
host vagrant_graylog_1
|
||||||
|
@ -5,6 +5,8 @@ services:
|
|||||||
fluentd:
|
fluentd:
|
||||||
build: ./fluentd
|
build: ./fluentd
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /var/log:/var/log/hostlogs
|
||||||
networks:
|
networks:
|
||||||
- graylog
|
- graylog
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user