Hi Team,
i have enabled the LOG_LEVEL: ‘debug’ and restarted my docker image.
I am trying to verify the logs it created, but not able to get the location of log file.
Can you please help on it.
Hi Team,
i have enabled the LOG_LEVEL: ‘debug’ and restarted my docker image.
I am trying to verify the logs it created, but not able to get the location of log file.
Can you please help on it.
Hi!
Weaviate will log at stdout.
This means that you can check the log running, for example:
docker compose logs -f --tail 10 weaviate
if you know the id of your container (docker ps
will show), you can discover where the .json file will be in your host system by issuing:
docker inspect --format='{{.LogPath}}' <id-of-your-weaviate-container>
Let me know if that helps!
Thanks!
Hello,
Thank you very much … it helped to identify the log location.
Thanks again…!!
That’s helpful.
I want to write logs to a file. Is there an option to set log file? I could not find it.
hi @bewakes !!
Welcome to our community
I am not sure I understood this question.
Do you want to write logs on the server log stream?
Hi @DudaNogueira !! Thank you for your prompt reply.
What I needed to do was to stream weaviate logs to grafana via loki. The weaviate instance runs inside docker. It seems that there’s a docker plugin for logging to loki. So, my issue is resolved.
Anyways, thank you weaviate team for creating this wonderful database.
Oh, I see.
You can expose prometheus metrics, as documented here:
Let me know if this helps!