Getting Started
AEM Dispatcher (Apache)
Record requests to a self-managed AEM Publish site through its Apache Dispatcher access log.
Use this guide for a customer-managed Adobe Experience Manager installation with Dispatcher on Apache/Linux. Install the Honeylog Apache collector on the Dispatcher server that handles public requests to AEM Publish.
Before you begin
You need access to the Apache configuration and a terminal with sudo permissions. The server needs Apache HTTP Server 2.4.19 or later, systemd, Python 3.9+ as python3, Bash, curl, awk, logrotate and outbound HTTPS access to api.honeylog.io. You also need permission to administer the corresponding site in Honeylog.
Step 1: Check your site details
Select your site in Honeylog and open Settings → Installation → AEM Dispatcher (Apache). Check the public hostname for the site you want to track. If you don't manage Apache, share this guide with your server administrator.
Under Advanced settings, the log path defaults to /var/log/apache2/honeylog_aem_access.log and the website scheme defaults to https. Set an absolute path if your server uses a different log location. If your public test site uses HTTP, choose http. Give each site its own log file when one Apache server serves several Honeylog sites.
Click Save details before copying the configuration and install command. Generate an ingestion secret on the installation page if the site needs one.
Step 2: Configure Apache
In Honeylog, click Copy Apache configuration. Paste both directives inside the Apache <VirtualHost> that serves the public AEM Publish site. Keep the field order because the collector reads the fields by position. The example below uses the default log path. Your generated snippet uses the path you set in Step 1.
LogFormat "%a - %l %u [%{%d/%b/%Y:%H:%M:%S %z}t] \"%{Host}i\" \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Requested-With}i\" \"%{Accept-Language}i\" \"%{Sec-Fetch-Dest}i\" \"%{Sec-Fetch-Mode}i\" \"%{Sec-Fetch-Site}i\" \"%{Sec-Fetch-User}i\" \"%{Sec-Purpose}i\" \"%{Purpose}i\" \"%{X-Moz}i\" \"%{Sec-Speculation-Tags}i\" %I %O %D" honeylog_aem
CustomLog "/var/log/apache2/honeylog_aem_access.log" honeylog_aem "expr=%{REQUEST_URI} !~ m#^/(?:etc[.]clientlibs/|dispatcher/invalidate[.]cache$)#i"
Run sudo apachectl configtest. After it reports Syntax OK, reload Apache with sudo systemctl reload apache2 on Debian or Ubuntu, or sudo systemctl reload httpd where the service is named httpd.
Apache configuration details
The collector reads the Apache HTTP access log. The Dispatcher module writes its diagnostics to dispatcher.log. The CustomLog expression excludes /etc.clientlibs/ and /dispatcher/invalidate.cache from this dedicated access log.
%a records the client IP resolved by Apache. If a proxy sits in front of Apache, configure it to preserve the original Host header. Configure mod_remoteip with the client IP header supplied by your proxy and restrict trusted proxies to their known IP addresses or ranges.
Before checking the syntax, run sudo apachectl -M and look for logio_module. Some distributions compile mod_logio into Apache. If it is missing, use your distribution's procedure to enable it. On Debian or Ubuntu, run sudo a2enmod logio when the module is available. mod_logio supplies %I and %O.
Step 3: Install Honeylog on your server
Click Copy install command in Honeylog and run it in Bash on the Apache server. Paste the site's ingestion secret at the hidden terminal prompt and press Enter.
The copied command downloads the Apache installer from https://api.honeylog.io/clients and sends events to https://api.honeylog.io/events. It sets HONEYLOG_SITE_DOMAIN to the public hostname and HONEYLOG_LOG_PATH to the file in the generated CustomLog directive.
Each site uses a dedicated collector instance. For a new installation, the dashboard uses aem-<domain>-<site UUID>, such as aem-publish.example.com-XyZ1234. It shortens long domains to fit the installer's 64-character limit. To keep the checkpoint when reinstalling, use the original HONEYLOG_INSTANCE and log path. If the original name used only the aem- prefix and UUID, keep that name in the install command and service checks.
Step 4: Check that visits are arriving
Open a public page on your website and note its path and the time of your visit. Give Honeylog about a minute to receive it. Then open Real Time Logs and look for a new entry with the same path and time.
Use Open Real Time Logs on the installation page. The test succeeds when a new row matches your visit. See the Real Time Logs guide.
No visit appeared?
On the Apache server, run the service checks from the installation page. If you use the example below, replace AEM_INSTANCE with the full HONEYLOG_INSTANCE from your install command, including the aem- prefix. Confirm that the service shows active (running) and check its journal for errors.
sudo systemctl status honeylog-apache@AEM_INSTANCE.service --no-pager
sudo journalctl -u honeylog-apache@AEM_INSTANCE.service -n 100 --no-pager
Open a public page and confirm Apache adds a line for that visit to the dedicated access log. Use your configured path if it differs from the default below.
sudo tail -n 20 /var/log/apache2/honeylog_aem_access.log
If an upstream CDN serves the page from its own cache, Apache receives no request. Test a page that reaches Apache. To track CDN cache hits, use its Honeylog integration and collect each request once.
Advanced verification: Dispatcher cache
Request the same public, cacheable URL twice and make sure both requests reach Apache. Use a fresh browser session or an HTTP client for the repeat visit. Confirm the second request is a Dispatcher cache hit using your existing cache diagnostics, then check that both new entries appear in Real Time Logs. Allow about one minute for the collector to send them.