How to configure rsyslog to forward only locally generated logs to remote log server

Solution Verified - Updated -

Issue

  • There are 3 rsyslog servers which can receive and send logs to each other.

  • How can we configure rsyslogserver2 to forward the local logs to rsyslogserver3 but it should not forward the logs generated by rsyslogserver1?

    rsyslogserver1 --- > rsyslogserver2 ---- > rsyslogserver3

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Rsyslog

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content