<?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[logwatch: ExtractVariables: Call to EvtRender failed]]></title><description><![CDATA[<p dir="auto">I'm experimenting with logwatch parser configurations for Windows Event Logs, specifically with our ADFS farm:</p>
<pre><code>&lt;parser&gt;
    &lt;file&gt;*AD FS/Admin&lt;/file&gt;
    &lt;macros&gt;
    &lt;/macros&gt;
    &lt;rules&gt;
		&lt;rule&gt;
			&lt;match&gt;.+?Error message: [ \r\n]+(.+?)-(.+) .+&lt;/match&gt;
            &lt;id&gt;342&lt;/id&gt;
			&lt;event param="2"&gt;100123&lt;/event&gt;
        &lt;/rule&gt;
    &lt;/rules&gt;
&lt;/parser&gt;
</code></pre>
<p dir="auto">But it appears I'm blowing up EvtRender call, message too big?</p>
<pre><code>2020.05.25 15:55:17.555 *I* [                   ] NetXMS Agent started
2020.05.25 15:55:24.773 *D* [                   ] PostEvent(): event_code=100123, event_name=(null), timestamp=1590386123, num_args=10, arg[0]="test@example.com", arg[1]="The", arg[2]="AD FS", arg[3]="342", arg[4]="1", arg[5]="11902", arg[6]="1", arg[7]="http://schemas.microsoft.com/ws/2006/05/identitymodel/tokens/UserName", arg[8]="test@example.com-The user name or password is incorrect", arg[9]="System.IdentityModel.Tokens.SecurityTokenValidationException: test@example.com ---&gt; System.ComponentModel.Win32Exception: The user name or password is incorrect

   at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUserHandle(SafeHGlobalHandle pLogonInfo, Int32 logonInfoSize, SafeCloseHandle&amp; tokenHandle, SafeLsaReturnBufferHandle&amp; profileHandle)

   at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUserInfo(SafeHGlobalHandle pLogonInfo, Int32 logonInfoSize, DateTime&amp; nextPasswordChange, DateTime&amp; lastPasswordChange, String authenticationType, String issuerName)

   at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUser(String domain, String username, String password, DateTime&amp; nextPasswordChange, DateTime&amp; lastPasswordChange, String issuerName)

   at Microsoft.IdentityServer.Service.LocalAccountStores.ActiveDirectory.ActiveDirectoryCpTrustStore.ValidateUser(IAuthenticationContext context)

   --- End of inner exception stack trace ---

   at Microsoft.IdentityServer.Service.LocalAccountStores.ActiveDirectory.ActiveDirectoryCpTrustStore.ValidateUser(IAuthenticationContext context)

   at Microsoft.IdentityServer.Service.Tokens.MsisLocalCpUserNameSecurityTokenHandler.ValidateTokenInternal(UsernameAuthenticationContext usernameAuthenticationContext, SecurityToken token)

   at Microsoft.IdentityServer.Service.Tokens.MsisLocalCpUserNameSecurityTokenHandler.ValidateToken(SecurityToken token)



System.ComponentModel.Win32Exception (0x80004005): The user name or password is incorrect

   at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUserHandle(SafeHGlobalHandle pLogonInfo, Int32 logonInfoSize, SafeCloseHandle&amp; tokenHandle, SafeLsaReturnBufferHandle&amp; profileHandle)

   at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUserInfo(SafeHGlobalHandle pLogonInfo, Int32 logonInfoSize, DateTime&amp; nextPasswordChange, DateTime&amp; lastPasswordChange, String authenticationType, String issuerName)

   at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUser(String domain, String username, String password, DateTime&amp; nextPasswordChange, DateTime&amp; lastPasswordChange, String issuerName)

   at Microsoft.IdentityServer.Service.LocalAccountStores.ActiveDirectory.ActiveDirectoryCpTrustStore.ValidateUser(IAuthenticationContext context)"
2020.05.25 15:55:24.773 *D* [logwatch           ] ExtractVariables: Call to EvtRender failed: The data area passed to a system call is too small.
</code></pre>
]]></description><link>https://forum.netxms.org/topic/6549/logwatch-extractvariables-call-to-evtrender-failed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:55:54 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6549.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 May 2020 06:11:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to logwatch: ExtractVariables: Call to EvtRender failed on Mon, 25 May 2020 07:45:05 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it looks like message is too big (or rather supplied buffer is too small). I've registered an issue in our bug tracker: <a href="https://track.radensolutions.com/issue/NX-1863" rel="nofollow ugc">https://track.radensolutions.com/issue/NX-1863</a></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27944</link><guid isPermaLink="true">https://forum.netxms.org/post/27944</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 25 May 2020 07:45:05 GMT</pubDate></item></channel></rss>