Add logs to a dashboard
Once you’ve refined a useful log query, you can save it to a dashboard panel for ongoing monitoring. Dashboard log panels let you keep an eye on specific log patterns, share views with your team, and correlate logs with other metrics on the same dashboard.
In this milestone, you’ll add your Elasticsearch log query to a Grafana dashboard.
You’ll add the Explore query to a new or existing dashboard, then save it.
Open Explore with the elasticsearch data source selected.
In the Lucene Query field, enter a query worth monitoring, for example
level:error AND service:api.Click Run query and confirm the results look right before you add them to a dashboard.
In the Explore toolbar, click Add, select Add to dashboard, keep New dashboard selected, then click Open dashboard.
Click Save in the dashboard toolbar.
In the Save dashboard dialog, enter a title, choose a folder if needed, then click Save.
You added your Elasticsearch log query to a dashboard panel for ongoing monitoring.
In your final milestone, you’ll review what you’ve accomplished and explore next steps.
More to explore (optional)
At this point in your journey, you can explore the following paths: