On December 17, 2016 12:07:18 PM GMT+01:00, Federico Donati 
<nix.b...@gmail.com> wrote:
>Hi all,
>
>I've a problem with an OpenBSD 6.0 box with rsyslog.
>
>I need to send every local logs to a remote server and I can't use 
>syslogd, because it does not send the hostname of the server (the one 
>indicated in /etc/myname), but on the remote server messages come with 
>the PTR record of my public ip.

have you tried -h for syslogd from base?

>
>I've installed rsyslogd, but it doesn't send anything to the remote 
>server. And more than that, it doesn't write anything local.
>
>I've also tried to run it in conjunction with syslogd, so locally 
>syslogd writes all the logs, but on the remote server rsyslog doesn't 
>send anything (verified also with tcpdump).
>
>This is my configuration rsyslog.conf file:
>
>~~~~~~~~~~~~~~~~~~~~~~~~~
>module(load="imuxsock") # provides support for local system logging 
>(e.g. via logger command)
>module(load="imklog")   # provides kernel logging support (previously 
>done by rklogd)
>
>$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
>
>*.* @@ip.ip.ip.ip:514
>~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>Output of configuration file parser:
>
>~~~~~~~~~~~~~~~~~~~~~~~~~
># rsyslogd -f /etc/rsyslog.conf -N 4 
> 
>
>rsyslogd: version 8.16.0, config validation run (level 4), master
>config 
>/etc/rsyslog.conf
>rsyslogd: End of config validation run. Bye.
>~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>My box uname -a:
>
>OpenBSD xxx.xxx.xx 6.0 GENERIC.MP#0 amd64
>
>
>Anyone can help?

Reply via email to