Where is log file?!

This might be a silly question, but I can’t find where the log data is stored…
Windows node was in the storage folder, but Sinology node can’t find where the log file is stored:(
Can you find where it is stored

Attached is a screenshot of the data folder

Log file on windows, usualy in instalation foldes, Program Files/Storj/Storagenode

1 Like

They should be inside the container. In my Qnap they are there

docker logs --tail 20 storagenode

1 Like

With the ssh command to Synology, and there:

sudo docker inspect <your-container-name> -f '{{ .LogPath }}'

example:

sudo docker inspect storagenode -f '{{ .LogPath }}'
1 Like

That’s right! Windows nodes were in an easy place to find, but Sinology seems to be hidden… Thank you for your answer. I’m using the node management program for Windows you uploaded, and I’m using it well! :slight_smile:

https://forum.storj.io/t/log-exporter-for-prometheus-with-grafana-dashboard/11250

The link here tells me to enter the path of the log file, but it’s hard for me to find it… I tried to connect to the root and find the container location, but it’s not easy either… There’s a mountain behind the mountain!

I also attach the result of the command you posted

Thank you!

The command shows you the last 20 logs. Maybe it can be useful to you

1 Like

Oh…! I found it. Thank you!

1 Like

I don’t think it’s the answer I want. I’m getting an error

Because this is Synology, and they do it their way to some .db, not .json :slight_smile:
See what @SlavikCA discovered:

3 Likes

That’s something I need to read, thank you! :slight_smile:

--log-driver json-file \
--log-opt max-size=10m \
--log-opt max-file=5 \

!!thank you!!
It must have been hard for beginners to deal with. Thank you.
:smiling_face_with_tear:

You may also redirect logs to the file to always find them.

1 Like

storj is a wide sea… :smile: