View System Logs on the OpenSearch Dashboard
This guide will walk you through how to access, filter, and interpret system logs on the OpenSearch dashboard. Our setup leverages a reporting framework that collects logs from Docker containers and indexes them in OpenSearch for easy access and filtering.
Viewing system logs on opensearch dashboard
Access the OpenSearch Dashboard Open the OpenSearch Dashboard in your browser using the provided URL. Ensure you have the necessary credentials to log in.
Navigate to the Logs Section
Go to Discover from the left-hand menu.
Select the relevant log index pattern (e.g.,
*.public.res_partner*
) to load logs.
Filter Logs by Severity (INFO, ERROR, etc.)
Use the search bar at the top to filter logs. For example
level:INFO
to see informational logs.level:ERROR
to view error logs.
You can combine filters using logical operators, like
level:ERROR AND service:postgres
Customize Time Range
Use the time picker in the top right corner to filter logs for specific periods (e.g., Last 15 minutes, Today, or Custom Range).
Save Searches and Views
After setting up filters, click Save to store frequent searches for quick access.
Use Add Filter or Edit Columns to refine how log entries are displayed.
Explore and Export Logs
Click on individual log entries to view details.
Use the Share button to generate reports or export logs if needed.
And you can see the image below for all the operations above.\
This framework provides a streamlined way to monitor and analyze logs effectively. Use filters regularly to narrow down critical information like errors or warnings.
Last updated