Access logs during problem analysis
When Dynatrace detects that a certain process is the root-cause of a detected problem, an Analyze process logs link is displayed on the corresponding Problem page.
To access log content during problem analysis:
- Click the Problems tile on your Dynatrace homepage.
- Select a problem.
- Click the Analyze process logs link beneath the root cause section.
- The Log viewer is displayed pre-loaded with all problematic process log entries that occurred during the problem timeframe.
Using the Log viewer, you can directly analyze log content and find problematic log messages that will help you understand the root cause of problems detected within monitored processes.
Create events based on log patterns
When you identify specific patterns in your log files that indicate problems or potential problems (messages that match specific search criteria), you can save the patterns for automatic detection by Dynatrace artificial intelligence. This way, the next time Dynatrace encounters the saved log pattern, it will automatically generate a new problem for tracking and root-cause analysis.
To create events based on a log pattern
- From the navigation menu, select Log files.
- Define a search query and select logs for analysis.
- At the bottom of the Log viewer, select a timeframe (scope) for the query.
- Click Display log to view the search results.
- When you are satisfied with your query, click Define event button.
- Fine-tune the query or scope as needed.
- Select the event type (Performance, Availability or Error) that best describes the searched pattern. This affects how the event will be correlated with other events.
- Modify the frequency threshold (if needed).
- Click Save.
All event definitions are available at Settings > Log analysis.