| Server IP : 138.197.107.151 / Your IP : 216.73.217.7 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/bsd-crawler-parser/viewer/__pycache__/ |
Upload File : |
�
K ^j, � � � d Z ddlZ ej d� Z ej d� ZdZd� Zd� Zd� Zd � Z d
� Z
d� Zy)a
Site identity: one WP Engine install is one site.
WHY THE INSTALL, NOT THE DOMAIN
A log file is named for the WP Engine *install* (20260709-0017-buckfirelaw...),
but the events inside it carry the *vhost* from each request line. Those are not
the same string, and one install serves several vhosts:
buckfirelaw -> buckfirelaw.com, buckfirelaw.wpengine.com
allmandlawfirm -> allmandlaw.com, allmandlawfirm.wpengine.com
Keying the site table on the vhost therefore lists one site twice -- once under
its real domain and once under the WP Engine holding domain. Keying on the
install lists it once, and is also the only identity that can name a site whose
log file is empty: no events means no vhost to read.
WHY THE MAPPING IS NOT GUESSED
The install name is not a substring of the domain often enough to matter: it is
truncated to 14 characters, and it is chosen by hand, so it drifts from the
domain entirely.
amdmedicalpllc -> amdmedicalgroup.com
bermanandrusso -> brslaw.com
awsmithpepper -> peppersprayinjury.com
aprsplasticsur -> apresplasticsurgery.com
Matching install to domain by string similarity gets 99 of 241 installs wrong
(41%). So nothing here guesses. The parser already writes both halves of the
answer into every event key --
events/date=2026-07-08/site=amdmedicalgroup.com/20260709-0011-amdmedicalpllc.jsonl
\_ vhost \_ install
-- and s3data reads the pairing straight out of the key. The mapping is observed,
not inferred.
� Nz/(?:^|/)\d{8}-\d{4}-(.+?)\.apachestyle\.log\.gz$z^\d{8}-\d{4}-(.+)$)z
.wpengine.comz.wpenginepowered.comc �V � t j | � }|r|j d� S dS )zGInstall name from a raw log key (or a manifest entry). None if not one.� N)�
SOURCE_KEY_RE�search�group)�key�ms �+/var/www/bsd-crawler-parser/viewer/sites.py�install_from_source_keyr 3 s'