Fluentd: record_transformer #0 unknown placeholder found

Created on 30 Jul 2019  路  4Comments  路  Source: fluent/fluentd

Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.

Describe the bug

To Reproduce

Expected behavior

Your Environment

  • Fluentd or td-agent version: fluentd --version or td-agent --version
/# td-agent --version
td-agent 1.4.2
  • Operating system: cat /etc/os-release
# cat /etc/os-release 
NAME="Ubuntu"
VERSION="19.04 (Disco Dingo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.04"
VERSION_ID="19.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=disco
UBUNTU_CODENAME=disco
  • Kernel version: uname -r: 5.0.0-20-generic

Your Configuration

    <filter aspnetcore>
      @type record_transformer
      auto_typecast true
      <record>
        size ${record["ContentLength"]}
        duration ${record["fields"]["ElapsedMilliseconds"]}
      </record>
    </filter>
<!-- Write your configuration here -->



md5-0b5be91da41eeaeab316a266fe4eb5a8



md5-b6f2830203f9ae5ad47202bdb061d83a



<!-- Write your **ALL** error log here -->

Additional context

Most helpful comment

I guess probably you'll need enable_ruby true in your filter

All 4 comments

Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.

https://github.com/fluent/fluentd/blob/master/CONTRIBUTING.md#got-a-question-or-problem

This is similar case of https://docs.fluentd.org/filter/record_transformer#i-got-unknown-placeholder-usd-record-msg-found-error-why
But yes, use google forum for the question. Repost with actual log example is more better :)

I use double-quoted strings. Not single.

I guess probably you'll need enable_ruby true in your filter

Was this page helpful?
0 / 5 - 0 ratings