Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue loading imdocker inpute module #3979

Open
darakian opened this issue Nov 19, 2019 · 5 comments
Open

Issue loading imdocker inpute module #3979

darakian opened this issue Nov 19, 2019 · 5 comments

Comments

@darakian
Copy link

Expected behavior

Module loads and I get docker logs

Actual behavior

# systemctl status rsyslog
● rsyslog.service - System Logging Service
   Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-11-19 21:53:25 UTC; 5min ago
     Docs: man:rsyslogd(8)
           https://www.rsyslog.com/doc/
 Main PID: 3278 (rsyslogd)
   CGroup: /system.slice/rsyslog.service
           └─3278 /usr/sbin/rsyslogd -n

Nov 19 21:53:25 ip-172-23-5-150.ec2.internal systemd[1]: Stopped System Logging Service.
Nov 19 21:53:25 ip-172-23-5-150.ec2.internal systemd[1]: Starting System Logging Service...
Nov 19 21:53:25 ip-172-23-5-150.ec2.internal systemd[1]: Started System Logging Service.
Nov 19 21:53:25 ip-172-23-5-150.ec2.internal rsyslogd[3278]: could not load module 'imdocker', errors: trying to load module /usr/lib64/rsyslog/imdocker.so: /usr/lib64/rsyslog/imdocker.so: cannot open shared object file: No such file o...slog.com/e/2066 ]
Nov 19 21:53:25 ip-172-23-5-150.ec2.internal rsyslogd[3278]: warning: ~ action is deprecated, consider using the 'stop' statement instead [v8.1910.0 try https://www.rsyslog.com/e/2307 ]
Nov 19 21:53:25 ip-172-23-5-150.ec2.internal rsyslogd[3278]: [origin software="rsyslogd" swVersion="8.1910.0" x-pid="3278" x-info="https://www.rsyslog.com"] start

Steps to reproduce the behavior

Add centos 7 rsyslog repo as described here
https://www.rsyslog.com/rhelcentos-rpms/

add the line module(load="imdocker") to /etc/rsyslog.conf.
and reboot rsyslog

Environment

  • rsyslog version: 8.1910.0
  • platform: Centos 7

I've looked through the repository files and the imdocker docs (https://www.rsyslog.com/doc/v8-stable/configuration/modules/imdocker.html) but it's unclear how to get the module to load.

@rgerhards
Copy link
Member

you need to install the package before you can use it, e.g dnf install rsyslog-imdocker. That said, I do not even know if this module is packaged.

@darakian
Copy link
Author

I don't see rsyslog-imdocker available for centos here
http://rpms.adiscon.com/v8-stable/epel-7/x86_64/RPMS/
nor here
https://download.opensuse.org/repositories/home:/rgerhards/CentOS_7/x86_64/
Is it just not being built maybe?

@rgerhards
Copy link
Member

Is it just not being built maybe?

yeah, that's what I suspect. I'll try to see if I can get it build on OBS - but may take a short while.

@darakian
Copy link
Author

Thanks and no rush on this from my end. I'm mostly exploring logging options at the moment :)

@Gainutdinov
Copy link

Gainutdinov commented Apr 27, 2023

Hello,
are there any tutorials to install rsyslog-imdocker module?
didn't found the module in any avaialbe repos for Centos 8 Stream & Ubuntu 22.04 :(

Tried to use repo but still no luck rsyslog-imdocker is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants