Topic "Does winscp include the connecting username with its log reports?"

Author Message
Ray
[View user's profile]

Joined: 2017-05-03
Posts: 2
Location: Earth for sale: Slightly Used: Inquire within
Hi everyone,
I'm setting up a new Centos 7 server, which uses rsyslog/journal to collect and manage server logs, and am currently setting up its sftp system logging. I find I am a bit stuck trying to figure out how to readily differentiate between different users connecting to our sftp server, but other than a random pid assigned to each session, nothing in the logs is showing which username is associated with the resulting log entries.

A current sample of log entries:
Code:
May  3 10:13:19 lti internal-sftp[2719]:rename old "/home/testuser/folder/testfile" new "/home/testuser/folder/Testfile"
May  3 10:14:03 lti internal-sftp[2719]:rename old "/home/testuser2/folder/testfile" new "/home/testuser2/folder/Testfile"


Example of desired result:
Code:
May  3 10:13:19 lti testuser internal-sftp[2719]:rename old "/home/testuser/folder/testfile" new "/home/testuser/folder/Testfile"
May  3 10:14:03 lti testuser2 internal-sftp[2719]:rename old "/home/testuser2/folder/testfile" new "/home/testuser2/folder/Testfile"


rsyslog does not appear to be receiving any kind of 'username' log property from WinSCP that I could instruct rsyslog to include in the relevant log file, even when looking at the 'raw' view of what's coming through the system's log socket.

Is this by design, or can anyone shed any light on how to pull this additional 'username' info from the client to the server's log socket?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26330
Location: Prague, Czechia
WinSCP does not send any log reports to the server. It's the server that generates the logs. And of course the server knows the username that WinSCP uses to login to the server.

Your question has actually nothing to do with WinSCP.
Ray
[View user's profile]

Joined: 2017-05-03
Posts: 2
Location: Earth for sale: Slightly Used: Inquire within
Ok, thanks Martin
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License