Open bohendo opened 5 years ago
Further discussion & advice would be greatly appreciated 😄
https://discuss.ipfs.io/t/how-to-administer-an-ipfs-node-to-decentralize-dao-data/4328
At the moment, the best way to do this is with an nginx reverse proxy. You can also poll ipfs diag cmds
but that's obviously a bit messy.
Really, you shouldn't be exposing the API to the public internet without sticking some reverse proxy out in front to restrict requests to some allowed set.
Version information:
I'm running docker image
ipfs/go-ipfs:latest
akaType:
Feature (+ related bug)
Description:
I'm preparing to administer an IPFS node & am having trouble with logs. The logs that I'm interested in are: Timestamp, HTTP endpoint, result, latency. The goal is to monitor the interactions this IPFS node has with it's clients. For example, something like this would be awesome:
Looks like the current system does not provide any option to start the daemon in a way that provides useful logs like this & would be overjoyed if a feature was added that provided this functionality.
Seems like my current options are:
According to
ipfs daemon --help
andipfs help
, I don't have any options. Some options are available though & I'd prefer to be able to discover them via this help interface.I discovered
ipfs daemon --verbose
from issue #1816 which has a signal-to-noise ratio of almost 0The same issue also introduced
ipfs log level
which I'm trying to use like so:But the above set of commands seems to ignore the log level updates & just print out everything. For example, most of the logs that are printed include stuff like
"system":"dht"
and"system":"addrutil"
which suggests that logs other than those from the eventlog system are being printed. This may be a bug or potentially a misunderstanding on my end.I also don't know if "eventlog" is the system that contains the logs I want. "cmds/http" Also sounds promising but I don't know where the documentation is that would explain this, any guidance would be greatly appreciated.
IPFS is going to change the world, thank you for all the work you've put into this project 😁