4
responses

Hi

Requirement: Reading logs of multiple servers from a single server

Is there any way to read a network shared log file like "\\RemoteServer\Remotelog.log" using nxlog.

I tired using im_file module but not succeed, kindly let me know whether it is possible or not.

BR,
Ravi

AskedAugust 20, 2020 - 7:08am

Comments (4)

  • RV_843257's picture

    Hi

    Below are the input and error details.

    <Input remote_connectlog>
    Module im_file
    File '\\server\connect_logs\connect8003.log'
    SavePos TRUE
    Exec $Message = $raw_event;
    Exec to_json();
    </Input>

    Error:

    2020-08-20 10:02:02 ERROR apr_stat failed on file \\server\connect_logs\connect8003.log; The user name or password is incorrect.
    2020-08-20 10:02:09 ERROR last message repeated 2 times
    2020-08-20 10:02:17 ERROR apr_stat failed on file \\error\connect_logs\connect8003.log; The user name or password is incorrect.
    2020-08-20 10:02:33 ERROR apr_stat failed on file \\error\connect_logs\connect8003.log; The user name or password is incorrect.
    2020-08-20 10:03:06 ERROR apr_stat failed on file \\error\connect_logs\connect8003.log; The user name or password is incorrect.
    2020-08-20 10:04:10 ERROR apr_stat failed on file \\error\connect_logs\connect8003.log; The user name or password is incorrect.
    2020-08-20 10:06:18 ERROR apr_stat failed on file \\error\connect_logs\connect8003.log; The user name or password is incorrect.
    2020-08-20 10:10:35 ERROR apr_stat failed on file \\error\connect_logs\connect8003.log; The user name or password is incorrect.

  • Arkadiy's picture
    (NXLog)

    Looks like the user whose access is used by nxlog don't have enough permissions to get to that file. Could you check this matter?

    Regards, Arch

Answers (0)