Description | This article discusses the task limit for asynchronous log searches in FortiAnalyzer. |
Scope | FortiAnalyzer v7.2.4 VM and above |
Solution |
In one user session, a new task is generated when a log search is performed in FortiAnalyzer GUI, or via API. There is a limit to the amount of tasks generated for log searches performed:
Tiara-kvm12 # dia test app fazsvcd 4 Slot total=128 inuse=0
Starting from v7.2.4 and above, the amount of tasks generated from asynchronous log searches is 128:
Tiara-kvm12 # dia test app fazsvcd 4 125: reqid=496123773 lass-access=13s(ago) clt-lass-access=19807d4h54m39s(ago) fetch=0 cancelled=0 complete=13s(ago) errcode=0 ready=1 thr-mode=standby Slot total=128 inuse=128
A Python script is attached here to test this limit (logsrch.py); the following screenshot shows the number of active tasks in one API session:
Once the limit is reached, the FortiAnalyzer will return the following error:
This will also affect log searches done on the GUI:
dia de app fazsvcd 8 dia de en
Note: The limit is only 64 in FortiAnalyzer-VM v7.2.3 and below. The limit for FortiAnalyzer is different depending on the model. |