Skip to content

Commit

Permalink
ubuntu config: use V1 Format
Browse files Browse the repository at this point in the history
with `--use-v1-config`, it can use emmbedded Ruby code.
ref: http://docs.fluentd.org/articles/config-file#v1-format

This feature can use fluentd v0.10.46 or later.
ref: https://groups.google.com/forum/#!msg/fluentd/ymqI5OKV1Js/QMS8HT30wGMJ
  • Loading branch information
cosmo0920 committed Dec 11, 2014
1 parent 704e591 commit fb059f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ubuntu/log-parsing-node/td-agent.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<source>
type secure_forward
shared_key fluentd-secret
self_hostname parser1.example.com
self_hostname "#{Socket.gethostname}"
cert_auto_generate yes
</source>

Expand Down Expand Up @@ -35,7 +35,7 @@
<match log>
type secure_forward
shared_key fluentd-secret
self_hostname parser1.example.com
self_hostname "#{Socket.gethostname}"

buffer_type file
buffer_path /var/spool/td-agent/buffer/secure-forward
Expand Down
2 changes: 1 addition & 1 deletion ubuntu/log-search-node/td-agent.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<source>
type secure_forward
shared_key fluentd-secret
self_hostname search.example.com
self_hostname "#{Socket.gethostname}"
cert_auto_generate yes
</source>

Expand Down
2 changes: 1 addition & 1 deletion ubuntu/monitoring-target/td-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<match raw.*.log.**>
type secure_forward
shared_key fluentd-secret
self_hostname node1.example.com
self_hostname "#{Socket.gethostname}"
<server>
host parser1.example.com
</server>
Expand Down

0 comments on commit fb059f8

Please sign in to comment.