Re: [tor-relays] tor relay and syslog logging

2016-10-09 Thread Andrew Deason
On Fri, 07 Oct 2016 09:46:54 +0200
"Dr. Who"  wrote:

> What facility is used by tor when logging to syslog? I didn't find that 
> information.

It looks like the default is 'daemon', as you expected. It is changeable
via a ./configure option, but debian doesn't seem to touch it.

> System is a standard current debian 8.6 with tor Tor 0.2.8.8 
> (git-8d8a099454d994bd), the two Log-Lines are:
> 
> Log notice file /var/log/tor/notices.log
> Log notice syslog
> 
> Any idea what might be missing?

Those lines work for me. You could try sharing a minimal example syslog
config that doesn't seem to be working; maybe something's weird with
that? You could also maybe 'strace' tor during startup to see if it
looks like some log-related syscalls are failing. But be careful with
retaining or sharing any such trace, since I assume there can be some
sensitive info in there.

-- 
Andrew Deason
adea...@dson.org
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


[tor-relays] tor relay and syslog logging

2016-10-07 Thread Dr. Who

I'm trying to log locally (notice.log) and to a local syslog-ng server.

It doesn't seem to work. I get no messages at all to my local syslog 
server. When I try to log some testlines manually (even as the tor 
system user) it seems to work.


As I understood the configuration I can have multiple "Log " lines 
without problem, right?


A test like:
logger -p daemon.notice -t tortest Testing
generates the expected lines in /var/log/messages

What facility is used by tor when logging to syslog? I didn't find that 
information.


System is a standard current debian 8.6 with tor Tor 0.2.8.8 
(git-8d8a099454d994bd), the two Log-Lines are:


Log notice file /var/log/tor/notices.log
Log notice syslog

Any idea what might be missing?


___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays