I am hoping to consolidate all of my logs into one system. I am planning on moving my Apigee logging from loggly to Datadog.
Has anyone been able to set up a MessageLogging policy with Datadog logs?
My policy looks something like:
<MessageLogging async="false" continueOnError="false" enabled="true" name="Log-Warnings"> <DisplayName>Log-Warnings</DisplayName> <Syslog> <Message>APIKEY test</Message> <Host>intake.logs.datadoghq.com</Host> <Port>10514</Port> <Protocol>TCP</Protocol> </Syslog> <logLevel>WARNING</logLevel> </MessageLogging>
It does not seem to work. I have not been able to view logs in Datdog. Is there a way I can debug the message sent in apigee?
I have also tried using the format Datadog defines for rsyslog:
"YOURAPIKEY <%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% - - - %msg%\n"
I should be able to get that format by setting FormatMessage to true. However, am unable to set my Datadog API Key at the beginning of the message if I set it to true.
Datadog Docs: https://docs.datadoghq.com/logs/
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |