From 65ec50002d66dae637fcfad32c29ba91ede91e10 Mon Sep 17 00:00:00 2001 From: kiyoto Date: Mon, 25 Aug 2014 21:38:31 +0000 Subject: [PATCH] example configs for common core plugins c.f. https://github.com/fluent/fluentd/issues/407 --- example/in_http.conf | 14 ++++++++++++++ example/in_syslog.conf | 15 +++++++++++++++ example/in_tail.conf | 14 ++++++++++++++ example/in_tcp.conf | 13 +++++++++++++ example/in_udp.conf | 13 +++++++++++++ example/out_copy.conf | 20 ++++++++++++++++++++ example/out_file.conf | 13 +++++++++++++ example/out_forward.conf | 30 ++++++++++++++++++++++++++++++ 8 files changed, 132 insertions(+) create mode 100644 example/in_http.conf create mode 100644 example/in_syslog.conf create mode 100644 example/in_tail.conf create mode 100644 example/in_tcp.conf create mode 100644 example/in_udp.conf create mode 100644 example/out_copy.conf create mode 100644 example/out_file.conf create mode 100644 example/out_forward.conf diff --git a/example/in_http.conf b/example/in_http.conf new file mode 100644 index 0000000000..e2402dcf70 --- /dev/null +++ b/example/in_http.conf @@ -0,0 +1,14 @@ + + type http + bind 0.0.0.0 + port 9880 + body_size_limit 32MB + keepalive_timeout 10 + # backlog 0 + add_http_headers false + format default + + + + type stdout + diff --git a/example/in_syslog.conf b/example/in_syslog.conf new file mode 100644 index 0000000000..73c5ca6775 --- /dev/null +++ b/example/in_syslog.conf @@ -0,0 +1,15 @@ + + type syslog + bind 0.0.0.0 + port 5140 + tag test + protocol_type udp + include_source_host false + source_host_key source_host + # format ... + # with_priority true + + + + type stdout + diff --git a/example/in_tail.conf b/example/in_tail.conf new file mode 100644 index 0000000000..b3bc22f092 --- /dev/null +++ b/example/in_tail.conf @@ -0,0 +1,14 @@ + + type tail + format none + path /var/log/fluentd_test.log + pos_file /var/log/fluentd_test.pos + tag test + rotate_wait 5 + read_from_head true + refresh_interval 60 + + + + type stdout + diff --git a/example/in_tcp.conf b/example/in_tcp.conf new file mode 100644 index 0000000000..df2663e993 --- /dev/null +++ b/example/in_tcp.conf @@ -0,0 +1,13 @@ + + type tcp + format none + bind 0.0.0.0 + port 5170 + delimiter \n + source_host_key "host" + tag test + + + + type stdout + diff --git a/example/in_udp.conf b/example/in_udp.conf new file mode 100644 index 0000000000..c7c8dd85b4 --- /dev/null +++ b/example/in_udp.conf @@ -0,0 +1,13 @@ + + type udp + format none + bind 0.0.0.0 + port 5160 + body_size_limit 4KB + source_host_key "host" + tag test + + + + type stdout + diff --git a/example/out_copy.conf b/example/out_copy.conf new file mode 100644 index 0000000000..f07d815df5 --- /dev/null +++ b/example/out_copy.conf @@ -0,0 +1,20 @@ + + type forward + + + + type copy + deep_copy false + + type stdout + + + type file + path /var/log/fluentd/out_file_test + format json + buffer_type memory + # compress gzip + # symlink_path /path/to/symlink + append false + + diff --git a/example/out_file.conf b/example/out_file.conf new file mode 100644 index 0000000000..0f44774973 --- /dev/null +++ b/example/out_file.conf @@ -0,0 +1,13 @@ + + type forward + + + + type file + path /var/log/fluentd/out_file_test + format json + buffer_type memory + # compress gzip + # symlink_path /path/to/symlink + append false + diff --git a/example/out_forward.conf b/example/out_forward.conf new file mode 100644 index 0000000000..501a6ae4f3 --- /dev/null +++ b/example/out_forward.conf @@ -0,0 +1,30 @@ + + type forward + + + + type forward + + + # first server + port 24224 + + + # second server + port 24225 + + + # second server + port 24226 + standby + + + send_timeout 60 + heartbeat_type udp + heartbeat_interval 1 + recover_wait 10 + hard_timeout 60 + expire_dns_cache nil + phi_threshold 16 + phi_failure_detector true +