Generic log ingestion
powered by Grail
Dynatrace automatically collects log and event data from a vast array of technologies. With generic log ingestion, you can stream log records to a system and have Dynatrace transform the stream into meaningful log messages.
Generic log ingestion allows you to stream log records to the system. It is available only via Log Monitoring API - POST ingest logs.
-
For Dynatrace SaaS, the generic logs ingest endpoint is available in your environment.
-
For Dynatrace Managed or if the Environment ActiveGate is your choice for an endpoint in your local environment, install an ActiveGate instance (In the Dynatrace menu, go to Deploy Dynatarce and select Install ActiveGate). The generic log ingest API v2 is automatically enabled on ActiveGate.
-
The endpoint is enabled by default on all of your ActiveGates.
-
ActiveGate is responsible for serving the endpoint, collecting the data, and forwarding it to Dynatrace in batches.
- SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/logs/ingest
- Environment ActiveGate https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/logs/ingest
ActiveGate will collect and attempt to automatically transform any log data containing the following elements:
- Log content
- Timestamp
- Key-Values attributes
To list all predefined key-values attributes
- In the user menu, go to Environment API v2.
- Select Logs and expand the POST/logs/ingest endpoint.
- In the Request body section, select the Schema tab and check the Supported semantic attribute keys section.