# Visualizing Logs on OCI

Being able to view the status of an application that is running in production is critical. As developers we can’t necessarily, and should not ever, be poking around in production systems. This is even more critical when it comes to Cloud Native applications where we have no access to the underlying infrastructure.

Logs are a great source of information, however searching through logs is difficult, time consuming, and generally not something that you are going to do unless you know there is a problem…

OCI gives you a convenient, and it turns out pretty easy, way to turn your logs into visualizations that can help you to identify problems with your application. In this blog post we are going to walk through how you can set up a dashboard that will visualize errors.

## The source

I am going to highlight OCI Object Storage as the source of information for the dashboard. Lets imagine I have an application that makes heavy use of OCI Object Storage, and errors interacting with that service would be an indicator that my application is having issues.

The first thing to do is set up logging on your bucket.

From the object storage interface, on a per bucket basis, OCI gives you the ability to set up logging. Once enabled, logging will automatically happen based on interactions with your bucket.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751472958113/621a8978-2c1d-4861-a135-48e7572e5339.png align="center")

In this image you can see that for my bucket, I have selected Logs on the left hand navigation, and I have enabled both logs.Once this is done, you will be able to select a log group and log name for your log.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473084541/18133e84-d353-4c48-a75a-a36f2f421cb5.png align="center")

Here you can see the log entries for the bucket.

## Setting up a dashboard

The next step is to create a dashboard to visualize the data. From the OCI Hamburger menu, you can select Dashboards

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473223012/9c91ff02-a097-4afc-bc55-a841764cb566.png align="center")

Select the “Dashboard Groups” option on the left.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473326513/f2b49f27-e920-4b9c-9910-4cf2984cd071.png align="center")

Create your new Dashboard group, giving it a name and a description. You should also select the compartment that the dashboard will reside in.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473452842/62675da4-997d-4850-a2cf-75f31c8ff8f8.png align="center")

Once you have your dashboard group, you can return to the main page for Dashboards and select the create a new Dashboard option.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473546725/fbd73c2c-64ee-436f-862a-a17a0a4c7aee.png align="center")

Your new dashboard has a canvas that you can use to visualize data from the log. I am going to choose a new dashboard from scratch, provide a name and description, and select the compartment and my dashboard group.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473774982/24fe2d54-5f19-4538-8bca-2f629fe1676b.png align="center")

My new dashboard provides a blank canvas to build on.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473862121/78e084fa-8087-4c3b-b852-d9fb392fddca.png align="center")

Adding a new widget gives me some options. For this first option, I am going to choose “Logging Chart”

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473906610/16c9d1ac-181f-438e-a998-4060cb08c170.png align="center")

Next I am going to click configure.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751473953399/d1e8d6c3-85f4-4e10-8a98-e99b6a41ad76.png align="center")

Next I want to set up the type of graph that makes sense for the visualization. In my case I want a line graph, over time, for the current day, and an interval period of 1 minute. (The smallest granularity available.)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751474198079/0b473e1a-dd27-41fc-9a5e-a5821a59f3a8.png align="center")

Next I am going to scroll down to define the specific data that I am after. At the bottom, click the clear button on the logs to search option. This will allow you to select a specific log.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751474312222/3189aec1-237d-412b-9f12-a7fbba166145.png align="center")

Navigate the search panel and add the specific log that you want to visualize. You can select multiple logs if that is appropriate, however in this case, I am only interested in a single log.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751474392723/bf225416-3467-4ae5-86e8-1e2a3416cb49.png align="center")

Next I can add in specific filters for the data that I am after.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751474516200/c62944b6-7e91-47f7-85ce-c8e8830f299a.png align="center")

The filter will allow me to type in, and provide content options.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751475069155/4c5ace12-cf7c-4c4f-a41a-b15ca0f05c35.png align="center")

Once I have completed my filters, I can save my changes, and go back to my dashboard to view the results.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751475102423/1f36645c-6d8a-485f-bc72-bd95be245b90.png align="center")

Next I just need to save my changes and use my dashboard.
