Skip to content

Install Loki Data Source and Explore

Video Lecture

Install Loki Data Source and Explore Install Loki Data Source and Explore

Description

Now we will install the Loki Data Source, point it to our new Loki Service, and Explore some of the log files on the server.

Logs Panel

Troubleshooting

If you any of these errors

  • Loki: Internal Server Error. 500. open /tmp/loki/index/index_2697: permission denied
  • "failed to flush user" "open /tmp/loki/chunks/...etc : permission denied"
  • Loki: Internal Server Error. 500. Internal Server Error
  • Data source connected, but no labels received. Verify that Loki and Promtail is configured properly.

You should check the owner of the folders configured in the storage_config section of the the config-loki.yml to match the name of the user configured in the loki.service script above.

My user is loki, and the folders begins with /tmp/loki so I recursively set the owner.

chown -R loki:loki /tmp/loki

You may need to restart the loki service and checking again its status.

Comments