y-with-opa/opa3.png title><img class=element-to-stretch src=/v1.26/zh/blog/2024/l7-policy-with-opa/opa3.png alt=元数据></a></div><figcaption></figcaption></figure><p>为此，请检查您之前设置的访问日志格式：</p><pre><code class=language-plain data-expandlinks=true data-repo=istio>[...]
    accessLogFormat: |
      [OPA DEMO] my-new-dynamic-metadata: &#34;%DYNAMIC_METADATA(envoy.filters.http.ext_authz)%&#34;
[...]</code></pre><p><code>DYNAMIC_METADATA</code> 是用于访问元数据对象�