rsyslogd: Error while binding tcp socket: Address already in use

Solution Verified - Updated -

Issue

  • On a log collecting rsyslog server, the command systemctl status rsyslog.service gives below error :

    # journalctl -u rsyslog 
    Aug 03 11:45:48 localhost.localdomain rsyslogd[3609]: module 'imtcp' already in this config, cannot be added  
    [v8.2102.0-15.el8 try https://www.rsyslog.com/e/2221 ]
    Aug 03 11:45:48 localhost.localdomain systemd[1]: Started System Logging Service.
    Aug 03 11:45:48 localhost.localdomain rsyslogd[3609]: Error while binding tcp socket: Address already in use 
    [v8.2102.0-15.el8]
    Aug 03 11:45:48 localhost.localdomain rsyslogd[3609]: Error while binding tcp socket: Address already in use 
    [v8.2102.0-15.el8]
    Aug 03 11:45:48 localhost.localdomain rsyslogd[3609]: Could not create tcp listener, ignoring port 514 bind- 
    address (null). [v8.2102.0-15.e>
    

Environment

  • Red Hat Enterprise Linux (all versions)

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