Skip to content

Commit

Permalink
Fix formatting for code samples in output-riemann
Browse files Browse the repository at this point in the history
Fixes #774
  • Loading branch information
karenzone committed Aug 3, 2019
1 parent d1065f4 commit 056a710
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/plugins/outputs/riemann.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ All nested logstash fields will be mapped to riemann fields containing all paren
separated by dots and the deepest value.

As an example, the logstash event:

[source,ruby]
-----
{
"@timestamp":"2013-12-10T14:36:26.151+0000",
"@version": 1,
Expand All @@ -97,14 +99,19 @@ As an example, the logstash event:
"key": "value"
}
}
-----

Is mapped to this riemann event:

[source,ruby]
-----
{
:time 1386686186,
:host host.domain.com,
:message log message,
:nested_field.key value
}
-----

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

Example:
[source,ruby]
-----
riemann {
riemann_event => {
"metric" => "%{metric}"
"service" => "%{service}"
}
}
-----

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

0 comments on commit 056a710

Please sign in to comment.