Skip to content

Commit

Permalink
example configs for common core plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoto committed Aug 25, 2014
1 parent fb787f7 commit 65ec500
Show file tree
Hide file tree
Showing 8 changed files with 132 additions and 0 deletions.
14 changes: 14 additions & 0 deletions example/in_http.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<source>
type http
bind 0.0.0.0
port 9880
body_size_limit 32MB
keepalive_timeout 10
# backlog 0
add_http_headers false
format default
</source>

<match test>
type stdout
</match>
15 changes: 15 additions & 0 deletions example/in_syslog.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<source>
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
</source>

<match test>
type stdout
</match>
14 changes: 14 additions & 0 deletions example/in_tail.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<source>
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
</source>

<match test>
type stdout
</match>
13 changes: 13 additions & 0 deletions example/in_tcp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<source>
type tcp
format none
bind 0.0.0.0
port 5170
delimiter \n
source_host_key "host"
tag test
</source>

<match test>
type stdout
</match>
13 changes: 13 additions & 0 deletions example/in_udp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<source>
type udp
format none
bind 0.0.0.0
port 5160
body_size_limit 4KB
source_host_key "host"
tag test
</source>

<match test>
type stdout
</match>
20 changes: 20 additions & 0 deletions example/out_copy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<source>
type forward
</source>

<match test>
type copy
deep_copy false
<store>
type stdout
</store>
<store>
type file
path /var/log/fluentd/out_file_test
format json
buffer_type memory
# compress gzip
# symlink_path /path/to/symlink
append false
</store>
</match>
13 changes: 13 additions & 0 deletions example/out_file.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<source>
type forward
</source>

<match test>
type file
path /var/log/fluentd/out_file_test
format json
buffer_type memory
# compress gzip
# symlink_path /path/to/symlink
append false
</match>
30 changes: 30 additions & 0 deletions example/out_forward.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<source>
type forward
</source>

<match test>
type forward

<server>
# first server
port 24224
</server>
<server>
# second server
port 24225
</server>
<server>
# second server
port 24226
standby
</server>

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
</match>

0 comments on commit 65ec500

Please sign in to comment.