You are viewing limited content. For full access, please sign in.

Question

Question

Possible causes for LFF9906-AuditTrailTmeoutSendEventToATHub

asked on June 9, 2023

What types of issues could lead to receiving this error from Forms?

We've verified there's clear connectivity from the Forms server to the server hosting the Audit Trail Event Hub service on TCP 10256, the Forms config page for Auditing shows the green "The connection has been verified", and indeed the Forms catalog has been created and has events populated in it (and actively populating still).  But it appears we are having periods where Forms logs this event over 100 times in an hour.... and then, just as suddenly, stops logging it. 

Log Name:      Laserfiche-Forms-App/Admin
Source:        Laserfiche-Forms-App
Date:          6/8/2023 1:24:48 PM
Event ID:      19906
Task Category: AuditTrailTmeoutSendEventToATHubErrorAdmin
Level:         Error
Keywords:      Session0,Session1,Session2,Session3
User:          SYSTEM
Computer:      [redacted domain name for this post]
Description:
Sending audit events to Audit Trail Hub Service timed out with error code SendEventTimeOut. [LFF9906-AuditTrailTmeoutSendEventToATHub]

Details:
URL: 
Error: AuditTrailTmeoutSendEventToATHub
Date: 6/8/2023 1:24:48 PM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 0

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: Sending audit events to Audit Trail Hub Service timed out with error code SendEventTimeOut. [LFF9906-AuditTrailTmeoutSendEventToATHub]

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Laserfiche-Forms-App" Guid="{98141ca4-660b-51c6-66b4-ec37f5b2fd87}" />
    <EventID>19906</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>45628</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000f00000000000</Keywords>
    <TimeCreated SystemTime="2023-06-08T18:24:48.655195400Z" />
    <EventRecordID>885734</EventRecordID>
    <Correlation />
    <Execution ProcessID="4352" ThreadID="8764" />
    <Channel>Laserfiche-Forms-App/Admin</Channel>
    <Computer>[redactedforthispost</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data Name="message">Sending audit events to Audit Trail Hub Service timed out with error code SendEventTimeOut. [LFF9906-AuditTrailTmeoutSendEventToATHub]

Details:
URL: 
Error: AuditTrailTmeoutSendEventToATHub
Date: 6/8/2023 1:24:48 PM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 0

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: Sending audit events to Audit Trail Hub Service timed out with error code SendEventTimeOut. [LFF9906-AuditTrailTmeoutSendEventToATHub]


</Data>
  </EventData>
</Event>

 

What conditions should be be looking for? There are a few instances of these events in the AuditTrail event log, but they don't correlate in time or volume with what we see on the Forms side:

General error: Illegal characters in path. 
Type: System.ArgumentException

 

Also, what happens to Forms if auditing is enabled, and it can't reach the Audit Trail Event Hub... based on another Answers post from Sam Carson, it appears to be a synchronous process, with Forms making a TCP 10256 connection to the AT Event Hub service which then writes the audit event to a message queue.  Well, what if that event hub service is offline... how does Forms handle not being able to write the audit event, does it queue them somehow? (it's not using MSMQ) or does it just hold them in memory and retry and retry? or (I'm sure not from compliance perspective)  just drop those audit events?

0 0

Replies

replied on June 11, 2023

All audit events generated in Forms go through following steps:

1. Save to local file 

2. Try to send to Audit Trail Event Hub

3. Removed from the local file

 

If Forms cannot connect to Audit Trail Event Hub, it will just keep trying. Meanwhile, new events are appended to local audit files.

 

So for your question, no events will be lost when Forms cannot connect to Audit Trail.

0 0
replied on June 12, 2023

Hi, Damon,

 

The SendEventTimeOut error indicates that Forms cannot send audit event to Audit Trail within timeout during the period. As Shengyao said, Forms will keep retry sending the audit event till success, so no data loss is expected. The timeout is 30 seconds, meaning approximately 100 times an hour which is consistent with what you see in Forms log.

0 0
replied on February 22, 2024

Is there a way to increase the timeout from 30 seconds to something higher? 

0 0
replied on February 27, 2024

No, the timeout is currently not configurable.

0 0
replied on October 9, 2023

How do we check the connection from Forms to the Audit Trail Hub Service?  What ports need to be open between the servers and how do we check that it is using the correct server name?

0 0
replied on October 10, 2023

To configure Forms Auditing, the following endpoints on Audit Trail server must be accessible to Forms service:

  1. TCP port 10256
  2. Audit Trail Configuration Site https://{server FQDN}/AuditTrailConfig

There is no specific port needed on Forms server.

You can check connection between Forms and Audit Trail on Forms Configuration Site, tab "Auditing". The green mark "The connection has been verified" indicates successful connection.

1 0
replied on October 12, 2023

Is the Port 10256 correct?  I cannot het that port with telnet or Test-NetConnection.

 

The port is allowed through the firewall on the AT server.

You are not allowed to follow up in this post.

Sign in to reply to this post.