Michael Kuty | d346020 | 2014-05-03 15:54:26 +0200 | [diff] [blame^] | 1 | <source> |
2 | type syslog | ||||
3 | port 42185 | ||||
4 | tag syslog | ||||
5 | </source> | ||||
6 | |||||
7 | <source> | ||||
8 | type forward | ||||
9 | </source> | ||||
10 | |||||
11 | <source> | ||||
12 | type tail | ||||
13 | format apache2 | ||||
14 | path /var/log/httpd/access_log | ||||
15 | pos_file /var/log/td-agent/apache2.access_log.pos | ||||
16 | tag mongo.apache.access | ||||
17 | </source> | ||||
18 | <source> | ||||
19 | type forward | ||||
20 | </source> | ||||
21 | <match mongo.*.*> | ||||
22 | # plugin type | ||||
23 | type mongo | ||||
24 | |||||
25 | # mongodb db + collection | ||||
26 | database apache | ||||
27 | collection access | ||||
28 | |||||
29 | # mongodb host + port | ||||
30 | host localhost | ||||
31 | port 27017 | ||||
32 | |||||
33 | # interval | ||||
34 | flush_interval 10s | ||||
35 | </match> | ||||
36 | |||||
37 | <match mongo.*.*> | ||||
38 | host 10.10.10.180 | ||||
39 | port 9200 | ||||
40 | |||||
41 | type elasticsearch | ||||
42 | logstash_format true | ||||
43 | flush_interval 10s # for testing | ||||
44 | </match> |