Skip to content

format single_value not processed #222

Description

@MattiDeGrauwe

Problem

When pushing my JSON parsed log to Cloudwatch using the single_value formatter, the log file still arrives at Cloudwatch in JSON format.

Expected Behavior or What you need to ask

<source>
  @type tail
  ...
  <parse>
    @type json
    time_format %Y-%m-%dT%H:%M:%S.%NZ
  </parse>**
</source>

<match x>
  @type cloudwatch_logs
  ...
  <format>
    @type single_value
    message_key log
    add_newline false
  </format>        
</match>

Log arrives at Cloudwatch with this format:

{
    "log": "| 2021-02-03 12:47:19,501 | xxx |",
    "stream": "stdout"
}

Expected format:

 "| 2021-02-03 12:47:19,501 | xxx |"

Using Fluentd and CloudWatchLogs plugin versions

  • Bare Metal or within Docker or Kubernetes or others? Kubernetes
  • Image used: v1.7.3-debian-cloudwatch-1.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions