Log Monitoring Classic
Dynatrace automatically detects attributes of ingested log data. Available attributes quickly filter the result table data for a specific log data attribute.
You can also define your own custom log data attributes that suits your particular log data format. Similarly to the automatically detected log attributes, your custom log attributes are extracted from the log data during ingestion and become available within Dynatrace.
You can use them as filters in the log viewer (table options and log record detail attributes), as dimensions while creating log metrics, and as properties while creating log events.
These custom attributes must match log attributes in ingested log data or they will be ignored.
Dynatrace version 1.226+
Dynatrace automatically recognizes log attributes that are visible in log details and table options.
Custom attributes are case insensitive, but in future releases, they will become case sensitive and strictly matched with the ingested attributes. See Case sensitive attribute names in Logs Classic to prepare for the transition period.
You can check if the custom attributes you plan to add are part of the key-values attributes list for automatic detection. If they are present there, there is no need to add them to the custom list.
Dynatrace Log Monitoring gives you the ability to define custom index log data attributes for log data that is ingested.
In this example, you will make an API log ingest call with JSON that contains the following log attributes:
{"timestamp": "2021-07-29T10:54:40.962165022Z","level": "error","source": "Skynet","application.id": "PaymentService-Prod","message": "PaymentService-Prod failure.","data": {}}
Then you will create a custom log attribute and use it for creating a log metric and a log event.
Make an API call.
Create a custom attribute.
View the attribute in log viewer. (See Log viewer (Logs Classic) for details.)
Check Available attributes
Check table options
Check log entry/record details