# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.51
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.11
<source> type tail
format apache
path /var/log/nginx/localhost.access.log
pos_file /tmp/td-agent/apache.pos
tag apache.access
</source><matchapache.access> type stdout
</match>
<matchapache.access> type copy
<store> type stdout
</store><store> type forward
retry_limit 50
<server> host 133.242.54.192
</server></store></match>
DB Server’s fluent.conf
123456789101112131415
<source> type forward
</source><matchapache.access> type copy
<store> type stdout
</store><store> type mongo
host localhost
database fluent
collection accesslog
</store></match>