Replies: 4 comments 1 reply
-
Hello, Thanks [06-12-2021 10:14:51][SSH][demo][172.20.0.1] allow connection Is it possible to retrieve this SESSION ID also in post_login_hook, pre_login_hook and post_disconnect_hook ? Best regards |
Beta Was this translation helpful? Give feedback.
-
No problem i understand. Example : SFTPGO_LOGIND_USER => connection_id {"level":"debug","time":"2021-12-06T10:14:51.328","sender":"osfs","connection_id":"250070a0c1161b3c6f9c166c883110cdd6f7d1e4428666463ab0870eddb1b702","message":"root directory "/srv/sftpgo/data/homedir/demo" for user "demo" does not exist, try to create, mkdir error: "} The difference seems to be:
|
Beta Was this translation helpful? Give feedback.
-
After a quick test, just add "connection_id" that i can see on the primary log on JSON SFTPGO_LOGIND_USER UPDATE: I will even say more on reflection just getting the connection_id from pre-login to disconnect-login through events would be sufficient. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Is it possible to add a "Session ID" and/or "Connection ID" to hook environnement variable to permit to consolidate the data that I generate when a user opens several sessions at the same time (for example)?
Best regards and again thanks for your work/help
Beta Was this translation helpful? Give feedback.
All reactions