mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
added missing , in examples
This commit is contained in:
parent
395128abd5
commit
d1907b14f6
24
README.md
24
README.md
@ -39,9 +39,9 @@ include '::fluentd'
|
|||||||
::fluentd::source { 'test':
|
::fluentd::source { 'test':
|
||||||
priority => 10,
|
priority => 10,
|
||||||
config => {
|
config => {
|
||||||
'type' => 'tail'
|
'type' => 'tail',
|
||||||
'format' => 'json'
|
'format' => 'json',
|
||||||
'path' => '/var/log/test-application/*.json'
|
'path' => '/var/log/test-application/*.json',
|
||||||
'tag' => 'application.test'
|
'tag' => 'application.test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,9 +60,9 @@ include '::fluentd'
|
|||||||
```puppet
|
```puppet
|
||||||
::fluentd::filter { 'test':
|
::fluentd::filter { 'test':
|
||||||
priority => 20,
|
priority => 20,
|
||||||
pattern => '*.test'
|
pattern => '*.test',
|
||||||
config => {
|
config => {
|
||||||
'type' => 'record_transformer'
|
'type' => 'record_transformer',
|
||||||
'record' => {
|
'record' => {
|
||||||
'hostname' => '${hostname}'
|
'hostname' => '${hostname}'
|
||||||
}
|
}
|
||||||
@ -83,14 +83,14 @@ include '::fluentd'
|
|||||||
```puppet
|
```puppet
|
||||||
::fluentd::match { 'test':
|
::fluentd::match { 'test':
|
||||||
priority => 30,
|
priority => 30,
|
||||||
pattern => '*.test'
|
pattern => '*.test',
|
||||||
config => {
|
config => {
|
||||||
'flush_interval' => '30s'
|
'flush_interval' => '30s',
|
||||||
'type' => 'secure_forward'
|
'type' => 'secure_forward',
|
||||||
'secure' => 'yes'
|
'secure' => 'yes',
|
||||||
'shared_key' => 'my_shared_key'
|
'shared_key' => 'my_shared_key',
|
||||||
'self_hostname' => 'instance.test.com'
|
'self_hostname' => 'instance.test.com',
|
||||||
'ca_cert_path' => '/path/to/ca.cert'
|
'ca_cert_path' => '/path/to/ca.cert',
|
||||||
'servers' => {
|
'servers' => {
|
||||||
'host' => 'test.server.com'
|
'host' => 'test.server.com'
|
||||||
}
|
}
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
# @example
|
# @example
|
||||||
# ::fluentd::filter { 'test':
|
# ::fluentd::filter { 'test':
|
||||||
# priority => 20,
|
# priority => 20,
|
||||||
# pattern => '*.test'
|
# pattern => '*.test',
|
||||||
# config => {
|
# config => {
|
||||||
# 'type' => 'record_transformer'
|
# 'type' => 'record_transformer',
|
||||||
# 'record' => {
|
# 'record' => {
|
||||||
# 'hostname' => '${hostname}'
|
# 'hostname' => '${hostname}'
|
||||||
# }
|
# }
|
||||||
|
@ -25,12 +25,12 @@
|
|||||||
# priority => 30,
|
# priority => 30,
|
||||||
# pattern => '*.test'
|
# pattern => '*.test'
|
||||||
# config => {
|
# config => {
|
||||||
# 'flush_interval' => '30s'
|
# 'flush_interval' => '30s',
|
||||||
# 'type' => 'secure_forward'
|
# 'type' => 'secure_forward',
|
||||||
# 'secure' => 'yes'
|
# 'secure' => 'yes',
|
||||||
# 'shared_key' => 'my_shared_key'
|
# 'shared_key' => 'my_shared_key',
|
||||||
# 'self_hostname' => 'instance.test.com'
|
# 'self_hostname' => 'instance.test.com',
|
||||||
# 'ca_cert_path' => '/path/to/ca.cert'
|
# 'ca_cert_path' => '/path/to/ca.cert',
|
||||||
# 'servers' => {
|
# 'servers' => {
|
||||||
# 'host' => 'test.server.com'
|
# 'host' => 'test.server.com'
|
||||||
# }
|
# }
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
# ::fluentd::source { 'test':
|
# ::fluentd::source { 'test':
|
||||||
# priority => 10,
|
# priority => 10,
|
||||||
# config => {
|
# config => {
|
||||||
# 'type' => 'tail'
|
# 'type' => 'tail',
|
||||||
# 'format' => 'json'
|
# 'format' => 'json',
|
||||||
# 'path' => '/var/log/test-application/*.json'
|
# 'path' => '/var/log/test-application/*.json',
|
||||||
# 'tag' => 'application.test'
|
# 'tag' => 'application.test'
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
Loading…
Reference in New Issue
Block a user