Skip to content

Commit

Permalink
+cue fmt
Browse files Browse the repository at this point in the history
Signed-off-by: prognant <pierre.rognant@datadoghq.com>
  • Loading branch information
prognant committed Jun 17, 2021
1 parent 331f53b commit ec7e590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/remap/functions/encode_key_value.cue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package metadata

remap: functions: encode_key_value: {
category: "Codec"
category: "Codec"
description: #"""
Encodes the `value` to in key/value format with customizable delimiters. Default delimiters match
the [logfmt](\(urls.logfmt)) format.
Expand All @@ -20,7 +20,7 @@ remap: functions: encode_key_value: {
required: false
type: ["array"]
},
{
{
name: "key_value_delimiter"
description: "The string that separates the key from the value."
required: false
Expand Down Expand Up @@ -56,7 +56,7 @@ remap: functions: encode_key_value: {
return: #"ts=2021-06-05T17:20:00Z lvl=info msg="This is a message" log_id=12345"#
},
{
title: "Encode with default delimiters (nested fields)"
title: "Encode with default delimiters (nested fields)"
source: """
encode_key_value!({"agent": {"name": "vector"}, "log": {"file": {"path": "my.log"}}, "event": "log"})
"""
Expand Down

0 comments on commit ec7e590

Please sign in to comment.