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 custom log data attributes that suit your particular log data format and use them as filters in the log viewer (table options and log record detail attributes)
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.
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