Create a file named logForwarding.yaml. It should contain metadata, as described in the config pipeline article (kind should be set to LogForwarding and version set to “1”), with a configuration similar to the following
kind: "LogForwarding"
version: "1"
metadata:
envTypes: ["dev"]
data:
dynatrace:
default:
enabled: true
host: "dynatrace-host.example.com"
token: "${{dynatrace_token}}"
index: "AEMaaCS"
Logging Destination Configuration
Configurations for the supported logging destinations are listed below, along with any specific considerations.
HTTPS
kind: "LogForwarding"
version: "1"
metadata:
envTypes: ["dev"]
data:
https:
default:
enabled: true
url: "https://example.com/aem_logs/aem"
authHeaderName: "X-AEMaaCS-Log-Forwarding-Token"
authHeaderValue: "${{HTTPS_LOG_FORWARDING_TOKEN}}"
So HTTPS_LOG_FORWARDING_TOKEN need to passed to place where we send logs. (ex: dynatrace or splunk.) from AEM.