关于Bitrix日志生成位置及本地版Webhook日志启用的技术咨询
Bitrix On-Prem: Log Locations & Troubleshooting Untriggered Outbound Webhooks for Deal Updates
Hey there, let's break down your questions about Bitrix On-Prem logs and troubleshooting that untriggered outbound webhook for Deal updates:
1. Bitrix Log Generation Locations (On-Premise Version)
Bitrix stores logs in a few key places, depending on the type of activity:
- Core System & Error Logs: By default, these live in the
/bitrix/log/directory of your Bitrix installation. You'll find files likesystem.log,error.log, and module-specific logs (e.g.,crm.logfor CRM-related activity) organized by date. - Webhook-Specific Logs: Once enabled, webhook logs get their own subdirectory at
/bitrix/log/webhook/. Files here are typically named with webhook IDs or operation types, making it easy to filter for your outbound webhook traffic. - Server-Level Logs: Don't overlook your web server's logs! For Apache, check
/var/log/apache2/access.loganderror.log; for Nginx, look at/var/log/nginx/access.loganderror.log. These help confirm if Bitrix is even sending requests, and catch HTTP errors (like 403/500) that might not show up in Bitrix's internal logs.
2. Troubleshooting Untriggered Outbound Webhook on Deal Update
Let's walk through step-by-step to diagnose and fix this:
Step 1: Enable Detailed Webhook Logging
First, make sure Bitrix is logging webhook activity:
- Log into your Bitrix admin panel, navigate to Settings > System Settings > Debugging (some versions might have this under Settings > Security > Debugging).
- Under Log Settings, check the boxes for "Log webhook requests" and "Log webhook errors".
- Set the log level to
DebugorInfoto capture full details of each webhook call. - Save your changes—Bitrix will now start writing webhook logs to
/bitrix/log/webhook/.
Step 2: Validate Webhook Configuration
Before diving into logs, double-check your webhook setup:
- Go to Settings > Integration > Webhooks and locate your outbound webhook.
- Confirm the trigger condition is set to Deal > Updated. If you've selected specific fields to trigger the webhook, ensure the Deal update you're testing modifies one of those fields (partial field triggers won't fire if unrelated fields are changed).
- Verify the target URL is correct and reachable from your Bitrix server. Test it directly using
curlon the server:
If this fails, the issue is likely network-related (firewall, DNS, or target server downtime).curl -X POST https://your-target-webhook-url.com --data "test_payload=1"
Step 3: Analyze Logs for Errors
Head to /bitrix/log/webhook/ and open the most recent log file:
- No
deal.updateentries? This means Bitrix isn't triggering the webhook at all. Recheck your trigger conditions, ensure the Deal update meets the criteria, and rule out conflicting workflow automation rules that might override the webhook. - Entries with error messages? Here are common issues to look for:
Connection timeout: Bitrix can't reach the target URL. Check your server's outbound firewall rules, and confirm the target server has whitelisted your Bitrix IP.HTTP 4xx/5xx errors: The target server is rejecting the request. Check the target's logs for details (e.g., 403 means permission issues, 500 is a server-side error on their end).Invalid signature: The webhook's authentication signature doesn't match. Verify the secret key you configured in Bitrix matches what the target server expects.
Step 4: Advanced Debugging
If logs aren't giving you enough clues:
- Enable Full Debug Logging in the Debugging settings to capture broader system activity—this can help spot module conflicts or permission issues blocking the webhook.
- Test with a generic webhook receiver (like a simple endpoint you control) to isolate whether the problem is with Bitrix or the target server.
- Check CRM permissions: Ensure the user associated with the webhook has full access to Deal records (missing permissions can prevent the webhook from triggering).
内容的提问来源于stack exchange,提问作者Shoaib Khan
相关产品推荐
相关产品推荐

