An appliance has 2 interfaces. Would like to export syslog information using a particular interface ip address.

How to configure this in /etc/rsyslog.conf?


Here the way I have it in rsyslog.conf.
*.* @[ip address]:[optional port number]

[ip address] can be a hostname or an IP.
port number is optional. Omit the : if you are not using it.

  • Is this 'ip address' server ip address or my device interface ip address? Because this configuration is to set the server ip I guess. – Kranthi Mar 6 at 6:11
  • Yes. The IP address/port is where you want to send your logs. Your OS should be configured to rout that request through the correct interface. – Scottie H Mar 6 at 23:19
  • This is obvious configuration for syslog export. So, my problem is the other way. I want to chose exactly through which interfaces the syslog should go. Don't want to give control to OS her. – Kranthi Mar 7 at 2:43

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.