<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[User Sessions > Log to Events]]></title><description><![CDATA[<p dir="auto">Hello @all,</p>
<p dir="auto">is it possible to log the user sessions (User, Client name, Client Adress, ...) to the NetXMS event log?</p>
<p dir="auto">Greetings<br />
Marco</p>
]]></description><link>https://forum.netxms.org/topic/8307/user-sessions-log-to-events</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:18:37 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8307.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jan 2026 09:33:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to User Sessions > Log to Events on Fri, 23 Jan 2026 10:42:01 GMT]]></title><description><![CDATA[<p dir="auto">We have this information in Audit log, but if you need it in Event Log - there's Hook::login script in script library that you can use for that. Make sure that this script returns true, otherwise it will prevent users from logging in.</p>
<p dir="auto">To see what attributes are available in this script you can try this - it will log details to server log:</p>
<p dir="auto">for (a : $user.__class.attributes) trace(0, "$user." .. a .. " = " .. $user.__get(a));<br />
for (a : $session.__class.attributes) trace(0, "$session." .. a .. " = " .. $session.__get(a));<br />
return true;</p>
<p dir="auto">Then you can use PostEvent() or PostEventEx() to create the event (<a href="https://netxms.org/documentation/nxsl-latest/#func-postevent" rel="nofollow ugc">https://netxms.org/documentation/nxsl-latest/#func-postevent</a>), drop us a line if you need more help with scripting.</p>
]]></description><link>https://forum.netxms.org/post/35067</link><guid isPermaLink="true">https://forum.netxms.org/post/35067</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 23 Jan 2026 10:42:01 GMT</pubDate></item></channel></rss>