Troubleshooting Tip: Microsoft Defender alerts stop pulling due to pagination handling
| Description | This article describes an issue where Microsoft Defender alerts stop being pulled by the Event Pulling Agent due to improper pagination handling in the Generic HTTP API poller. |
| Scope | FortiSIEM. |
| Solution |
cd /opt/phoenix/bin/
Usage syntax:
./genericHttpApiPoller.py input_json credential test_flag(false/true) orgID serverIp serverHostname pollInterval
Example:
./genericHttpApiPoller.py /tmp/generic-input.json credential true 1 192.168.1.10 lab01 300
Replace credential, server IP, and hostname with the actual values.
cat > /tmp/input.json <<'EOF'
Validate JSON format:
python3 -m json.tool /tmp/input.json
Run the poller test:
./genericHttpApiPoller.py "$(cat /tmp/input.json)" credential true 1 graph.microsoft.com Windowsda 300
Replace the credential with the actual credential configured in FortiSIEM.
Edit the HTTPS Advanced (Generic HTTP API) Poller that is failing. If the $filter parameter contains '+', replace it with a single whitespace (' ') and save the configuration. The $filter parameter is defined under the Log API Parameters section, not in the Credential section.
Log API Parameters → $filter → Edit. Apply the change and re-test connectivity.
Related document: |
