[HELP] ERROR Failed to load module out_file.so - cannot open shared object file - DSO load failed


#1 pras92

Hi, 

I'm trying to send logs from a client (Ubuntu 20.04.4 LTS) to server (Ubuntu 22.04 LTS).

nxlog -v from the server throws an error: 

ERROR Failed to load module from /usr/lib/nxlog/modules/output/out_file.so, /usr/lib/nxlog/modules/output/out_file.so: cannot open shared object file: No such file or directory;DSO load failed 

Can someone please help me identify the problem?

Thanks. 

Below is the conf file for client, which has no errors:

define ROOT /etc/nxlog
Group nxlog
Moduledir /usr/lib/nxlog/modules
CacheDir %ROOT%/data
SpoolDir %ROOT%/data
Pidfile /tmp/nxlog.pid
include /etc/nxlog/nxlog.d/*.conf
LogFile /var/log/nxlog/nxlog.log
LogLevel INFO
<Extension _syslog>
    Module      xm_syslog
</Extension>
<Input in1>
    Module      im_file
    File        "/var/log/auth.log"
    SavePos TRUE
    ReadFromLast TRUE
</Input>

<Input in2>
    Module      im_file
    File        "/var/log/syslog"
    SavePos TRUE
    ReadFromLast TRUE
</Input>
<Output out1>
    Module      om_ssl
    Host        10.XXX.XXX.XXX
    Port        6514
</Output>

<Output out2>
    Module      om_ssl
    Host        10.XXX.XXX.XXX
    Port        6514
</Output>
<Route file_to_ssl>
    Path        in1 => out1
    Path        in2 => out2
</Route>

Below is the conf file for server showing the above mentioned error: 

define ROOT /etc/nxlog
Group nxlog

Moduledir /usr/lib/nxlog/modules
CacheDir %ROOT%/data
SpoolDir %ROOT%/data
Pidfile /tmp/nxlog.pid
include /etc/nxlog/nxlog.d/*.conf
LogFile /var/log/nxlog/nxlog.log
LogLevel INFO

<Extension _syslog>
    Module      xm_syslog
</Extension>
<Input in1>
    Module      im_ssl
    Host        10.XXX.XXX.XXX
    Port        6514
</Input>

<Input in2>
    Module      im_ssl
    Host        10.XXX.XXX.XXX
    Port        6514
</Input>
<Output out1>
    Module      out_file
    File        "/var/log/nxremotelogs/"$Hostname".log"
    SavePos TRUE
    ReadFromLast TRUE
</Output>
<Output out2>
    Module      out_file
    File        "/var/log/nxremotelogs/"$Hostname".log"
    SavePos TRUE
    ReadFromLast TRUE
</Output>
<Route 1>
    Path        in1 => out1
</Route>
<Route tcproute>
    Path        in2 => out2
</Route>
#2 pras92

Well, just after writing here, I compared both the conf files, I realized my mistake. Replacing both instances of out_file with om_file cleared that up.