Open RuiZhang2 opened 2 years ago
I just ran into this same issue, where my endpoint_url populates fine from an environment variable, but the token does not.
<match tmc_audit.**>
@type vmware_log_intelligence
endpoint_url "#{ENV['ARIA_LOG_URL']}"
verify_ssl true
http_compress false
<headers>
Content-Type application/json
Authorization Bearer "#{ENV['ARIA_LOG_TOKEN']}"
structure simple
</headers>
Actually, figured it out. It looks like it's a quirk of how the headers get parsed, this works for me:
Authorization "Bearer #{ENV['ARIA_LOG_TOKEN']}"
Typically, fluentd supports environment variable replacement. However, it does not work for vmware-log-intelligence plugin. Just wondering if you have any function support which is similar to what is shown below? :