OLD | NEW |
(Empty) | |
| 1 #### |
| 2 ## Output descriptions: |
| 3 ## |
| 4 |
| 5 # Treasure Data (http://www.treasure-data.com/) provides cloud based data |
| 6 # analytics platform, which easily stores and processes data from td-agent. |
| 7 # FREE plan is also provided. |
| 8 # @see http://docs.fluentd.org/articles/http-to-td |
| 9 # |
| 10 # This section matches events whose tag is td.DATABASE.TABLE |
| 11 <match td.*.*> |
| 12 type tdlog |
| 13 apikey YOUR_API_KEY |
| 14 |
| 15 auto_create_table |
| 16 buffer_type file |
| 17 buffer_path /var/log/td-agent/buffer/td |
| 18 |
| 19 <secondary> |
| 20 type file |
| 21 path /var/log/td-agent/failed_records |
| 22 </secondary> |
| 23 </match> |
| 24 |
| 25 ## match tag=debug.** and dump to console |
| 26 <match debug.**> |
| 27 type stdout |
| 28 </match> |
| 29 |
| 30 #### |
| 31 ## Source descriptions: |
| 32 ## |
| 33 |
| 34 ## built-in TCP input |
| 35 ## @see http://docs.fluentd.org/articles/in_forward |
| 36 <source> |
| 37 type forward |
| 38 </source> |
| 39 |
| 40 ## built-in UNIX socket input |
| 41 #<source> |
| 42 # type unix |
| 43 #</source> |
| 44 |
| 45 # HTTP input |
| 46 # POST http://localhost:8888/<tag>?json=<json> |
| 47 # POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"} |
| 48 # @see http://docs.fluentd.org/articles/in_http |
| 49 <source> |
| 50 type http |
| 51 port 8888 |
| 52 </source> |
| 53 |
| 54 ## live debugging agent |
| 55 <source> |
| 56 type debug_agent |
| 57 bind 127.0.0.1 |
| 58 port 24230 |
| 59 </source> |
| 60 |
| 61 #### |
| 62 ## Examples: |
| 63 ## |
| 64 |
| 65 ## File input |
| 66 ## read apache logs continuously and tags td.apache.access |
| 67 #<source> |
| 68 # type tail |
| 69 # format apache |
| 70 # path /var/log/httpd-access.log |
| 71 # tag td.apache.access |
| 72 #</source> |
| 73 |
| 74 ## File output |
| 75 ## match tag=local.** and write to file |
| 76 #<match local.**> |
| 77 # type file |
| 78 # path /var/log/td-agent/access |
| 79 #</match> |
| 80 |
| 81 ## Forwarding |
| 82 ## match tag=system.** and forward to another td-agent server |
| 83 #<match system.**> |
| 84 # type forward |
| 85 # host 192.168.0.11 |
| 86 # # secondary host is optional |
| 87 # <secondary> |
| 88 # host 192.168.0.12 |
| 89 # </secondary> |
| 90 #</match> |
| 91 |
| 92 ## Multiple output |
| 93 ## match tag=td.*.* and output to Treasure Data AND file |
| 94 #<match td.*.*> |
| 95 # type copy |
| 96 # <store> |
| 97 # type tdlog |
| 98 # apikey API_KEY |
| 99 # auto_create_table |
| 100 # buffer_type file |
| 101 # buffer_path /var/log/td-agent/buffer/td |
| 102 # </store> |
| 103 # <store> |
| 104 # type file |
| 105 # path /var/log/td-agent/td-%Y-%m-%d/%H.log |
| 106 # </store> |
| 107 #</match> |
OLD | NEW |