blob: 11ab2c7f2c613cbca0d1b4b8761467a4c4f405fd [file] [log] [blame]
Michael Kutyd3460202014-05-03 15:54:26 +02001<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>