0

I am trying to log tor with the following command:

journalctl -f -u tor@default.service | echo < log.tor.txt

Is there anything that I should change? Is this possible with journalctl? should I see something else?

0

It seems like redirecting the output of journalctl is a bit tricky, see this post for more context

You may want to use

sudo journalctl > complete.log.txt

Depending on your needs you can use journalctl -f instead

Then you can filter the results with

cat complete.log.txt | grep tor

See also https://unix.stackexchange.com/a/360793/440770

2
  • The file will remain blank. The logs that will normally show up do not show up. In turn, nothing will happen. BTW, that command will not work. I tried restarting tor, and the file still showed me nothing. – meeeeeeeeeeeee Jan 4 at 22:41
  • It seems like redirecting the output of journalctl is a bit tricky, I updated my answer – iaeiou Jan 5 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.