forked from volanja/ansible-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<source> | ||
type tail | ||
format apache2 | ||
path /var/log/nginx/access.log | ||
pos_file /var/log/td-agent/nginx.access.pos | ||
tag td.mysql.access | ||
</source> | ||
|
||
<source> | ||
type tail | ||
format syslog | ||
path /var/log/messages | ||
pos_file /var/log/td-agent/messages.pos | ||
tag system.mysql.message | ||
</source> | ||
|
||
<match td.mysql.access> | ||
type geoip | ||
|
||
geoip_lookup_key host | ||
|
||
enable_key_city city | ||
enable_key_latitude lat | ||
enable_key_longitude lon | ||
|
||
remove_tag_prefix td. | ||
add_tag_prefix es. | ||
</match> | ||
|
||
<match es.mysql.access> | ||
|
||
type forward | ||
# output type | ||
send_timeout 10s | ||
recover_wait 5s | ||
heartbeat_interval 1s | ||
phi_threshold 8 | ||
hard_timeout 10s | ||
|
||
# primary host | ||
<server> | ||
name collector | ||
host 192.168.200.216 | ||
port 24224 | ||
weight 60 | ||
</server> | ||
|
||
# Failed | ||
<secondary> | ||
type file | ||
path /var/log/fluent/forware-failed | ||
</secondary> | ||
|
||
# Buffer Parameters | ||
buffer_type memory | ||
flush_interval 3s | ||
|
||
</match> | ||
#<source> | ||
# type forward | ||
#</source> |