Skip to content

Commit aa60e3d

Browse files
committed
Fix formatting for code samples in output-riemann
Fixes #774
1 parent 9126747 commit aa60e3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/plugins/outputs/riemann.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ All nested logstash fields will be mapped to riemann fields containing all paren
8686
separated by dots and the deepest value.
8787

8888
As an example, the logstash event:
89+
8990
[source,ruby]
91+
-----
9092
{
9193
"@timestamp":"2013-12-10T14:36:26.151+0000",
9294
"@version": 1,
@@ -96,14 +98,19 @@ As an example, the logstash event:
9698
"key": "value"
9799
}
98100
}
101+
-----
102+
99103
Is mapped to this riemann event:
104+
100105
[source,ruby]
106+
-----
101107
{
102108
:time 1386686186,
103109
:host host.domain.com,
104110
:message log message,
105111
:nested_field.key value
106112
}
113+
-----
107114

108115
It can be used in conjunction with or independent of the riemann_event option.
109116
When used with the riemann_event any duplicate keys receive their value from
@@ -150,12 +157,14 @@ Any other field set here will be passed to Riemann as an event attribute.
150157

151158
Example:
152159
[source,ruby]
160+
-----
153161
riemann {
154162
riemann_event => {
155163
"metric" => "%{metric}"
156164
"service" => "%{service}"
157165
}
158166
}
167+
-----
159168

160169
`metric` and `ttl` values will be coerced to a floating point value.
161170
Values which cannot be coerced will zero (0.0).

0 commit comments

Comments
 (0)