---
# System prepended metadata

title: View Local Event Logs in Kibana
tags: [LOC CLI]

---

[Back to LOC CLI Guidebook](https://hackmd.io/4LIsNIuWQnuR70JMeuBAEA?view)
[Setup LOC CLI Environment](https://hackmd.io/igLh4azUT2aI8Fv-q-0e-g)
[Getting Started - JavaScript](https://hackmd.io/IiHvmAtjTTGFfakaH0dWuw?view)
[Getting Started - TypeScript](https://hackmd.io/kz93Th7vTCCbO3GFxp3r-A)
[LOC CLI Commands](https://hackmd.io/R4mrz2t1QSyTCHH73_2itg)
[Local Simple Runtime Execution](https://hackmd.io/JhAMB49rS4CrpNdhHed7YA?view)

# View Local Event Logs in Kibana

[Kibana](https://www.elastic.co/kibana/) is a web-based graphic interface for Elasticsearch, which is the database for LOC events. After starting up your local LOC environment, we can use the local Kibana service to view any events emitted in our local data processes.

See [Local Simple Runtime Execution](https://hackmd.io/JhAMB49rS4CrpNdhHed7YA?view) for information about how to start up local LOC environment.

## Open Kibana and Enter Stack Management

Make sure your local environment is ready, then open ```http://127.0.0.1:5601``` in your web browser:

![](https://hackmd.io/_uploads/SkGSAWwt5.png)

---

Click the menu icon on the upper left, then select **Stack Management** at the bottom:

![](https://hackmd.io/_uploads/BkXEQGDtc.png)

---

## Add Index Pattern

Select **Index Patterns**:

![](https://hackmd.io/_uploads/SkAyVGvt5.png)

---

Then click **Create index pattern**:

![](https://hackmd.io/_uploads/r1uEEfPK5.png)

---

In the index pattern window

1. Enter the name ```system_search```
2. Select ```timestamp``` in Timestamp field

![](https://hackmd.io/_uploads/r1EoVMvt5.png)

---

Then click **Create index pattern** on the bottom of the window.

You should see many indexes appear like this:

![](https://hackmd.io/_uploads/SJm8BGvY5.png)

---

:::info
The index ```system_search``` may be kept in your browser even after you re-deployed your local LOC environment.

Later when you return to the Discover panel, click the dots beside ```system_search``` then select **Manage index pattern fields** to see the fields again:

![](https://hackmd.io/_uploads/BJA-izDtq.png)
:::

---

## View and Visualize Event Logs

Now select **Discover** in the Kibana menu:

![](https://hackmd.io/_uploads/Sk54Ofvtc.png)

---

If you have emitted any events in local simple runtime, you will be able to see and filter them here: (here we have three events emitted in the same data process)

![](https://hackmd.io/_uploads/H1s9_Mvtc.png)

---

You can also visualize a specific field:

![](https://hackmd.io/_uploads/HkhUFfvt9.png)

---

![](https://hackmd.io/_uploads/rJY5FMwYc.png)

---

### Related Reading

Kibana: [Dashboard and visualizations](https://www.elastic.co/guide/en/kibana/current/dashboard.html)

###### tags: `LOC CLI`