{"id":3686,"date":"2025-12-29T19:41:32","date_gmt":"2025-12-29T16:41:32","guid":{"rendered":"https:\/\/www.dchost.com\/blog\/log-anonymization-and-ip-masking-techniques-for-kvkk-gdpr-compliant-hosting-logs\/"},"modified":"2026-11-04T20:58:36","modified_gmt":"2026-11-04T17:58:36","slug":"log-anonymization-ip-masking","status":"publish","type":"post","link":"https:\/\/www.dchost.com\/blog\/en\/log-anonymization-ip-masking\/","title":{"rendered":"Log Anonymization and IP Masking"},"content":{"rendered":"<div class=\"dchost-blog-content-wrapper\"><p><strong>Log anonymization<\/strong> requires more than changing an IP field. Raw web, mail and application logs may contain IPs, precise timestamps, URLs, user agents and request bodies. These fields can be personal data where they relate to an identifiable natural person. Logging for debugging, security or capacity planning still needs a defined purpose, appropriate protection and a retention limit. This guide connects Apache\/Nginx formats, IPv4\/IPv6 masking, pseudonymization and central pipelines; a sample configuration does not establish KVKK or GDPR compliance.<\/p>\n<p>A logging review should check whether logs are kept longer than needed, whether full IPs are copied unnecessarily across systems, and whether security data is distinguished from data kept \u201cjust in case\u201d. The practical aim is to retain useful operational evidence while reducing unnecessary detail on Linux, Nginx\/Apache and <a href=\"https:\/\/www.dchost.com\/vps\">VPS<\/a> setups. The examples below separate source-side omission from optional prefix reduction and keyed correlation.<\/p>\n<div id=\"toc_container\" role=\"navigation\" aria-label=\"Table of Contents\" data-nosnippet class=\"toc_transparent no_bullets toc_numbered toc_title_center\"><p class=\"toc_title\">\u0130\u00e7indekiler<\/p><ul class=\"toc_list\"><li><a href=\"#Why_IP_Addresses_in_Hosting_Logs_Can_Count_as_Personal_Data\"><span class=\"toc_number toc_depth_1\">1.<\/span> Why IP Addresses in Hosting Logs Can Count as Personal Data<\/a><\/li><li><a href=\"#Purpose_Legal_Basis_Roles_and_Retention\"><span class=\"toc_number toc_depth_1\">2.<\/span> Purpose, Legal Basis, Roles and Retention<\/a><\/li><li><a href=\"#Log_Anonymization_vs_Pseudonymization_Whats_the_Difference\"><span class=\"toc_number toc_depth_1\">3.<\/span> Log Anonymization vs Pseudonymization: What\u2019s the Difference?<\/a><ul><li><a href=\"#True_anonymization\"><span class=\"toc_number toc_depth_2\">3.1.<\/span> True anonymization<\/a><\/li><li><a href=\"#Pseudonymization\"><span class=\"toc_number toc_depth_2\">3.2.<\/span> Pseudonymization<\/a><\/li><li><a href=\"#When_to_use_which_for_hosting_logs\"><span class=\"toc_number toc_depth_2\">3.3.<\/span> When to use which for hosting logs?<\/a><\/li><\/ul><\/li><li><a href=\"#Source-Side_Minimization_in_Nginx_and_Apache\"><span class=\"toc_number toc_depth_1\">4.<\/span> Source-Side Minimization in Nginx and Apache<\/a><ul><li><a href=\"#Nginx_Select_the_Fields_You_Need\"><span class=\"toc_number toc_depth_2\">4.1.<\/span> Nginx: Select the Fields You Need<\/a><\/li><li><a href=\"#Apache_HTTPD_LogFormat_and_Client_Address_Selection\"><span class=\"toc_number toc_depth_2\">4.2.<\/span> Apache HTTPD: LogFormat and Client Address Selection<\/a><\/li><li><a href=\"#Load_balancers_proxies_and_WAFs\"><span class=\"toc_number toc_depth_2\">4.3.<\/span> Load balancers, proxies and WAFs<\/a><\/li><li><a href=\"#Applicationlevel_logging\"><span class=\"toc_number toc_depth_2\">4.4.<\/span> Application\u2011level logging<\/a><\/li><li><a href=\"#A_Complete_IPv4IPv6_JSON_Filter\"><span class=\"toc_number toc_depth_2\">4.5.<\/span> A Complete IPv4\/IPv6 JSON Filter<\/a><\/li><li><a href=\"#Optional_HMAC_Pseudonyms_for_Limited_Correlation\"><span class=\"toc_number toc_depth_2\">4.6.<\/span> Optional HMAC Pseudonyms for Limited Correlation<\/a><\/li><\/ul><\/li><li><a href=\"#Centralized_Logging_and_Anonymization_Pipelines\"><span class=\"toc_number toc_depth_1\">5.<\/span> Centralized Logging and Anonymization Pipelines<\/a><ul><li><a href=\"#Where_Should_the_Pipeline_Reduce_Sensitive_Data\"><span class=\"toc_number toc_depth_2\">5.1.<\/span> Where Should the Pipeline Reduce Sensitive Data?<\/a><\/li><li><a href=\"#Structured_logs_and_fieldlevel_masking\"><span class=\"toc_number toc_depth_2\">5.2.<\/span> Structured logs and field\u2011level masking<\/a><\/li><\/ul><\/li><li><a href=\"#A_Logging_Plan_for_Your_Hosting_Environment\"><span class=\"toc_number toc_depth_1\">6.<\/span> A Logging Plan for Your Hosting Environment<\/a><ul><li><a href=\"#1_Classify_your_logs_by_purpose\"><span class=\"toc_number toc_depth_2\">6.1.<\/span> 1. Classify your logs by purpose<\/a><\/li><li><a href=\"#2_Decide_where_full_IPs_are_truly_needed\"><span class=\"toc_number toc_depth_2\">6.2.<\/span> 2. Decide where full IPs are truly needed<\/a><\/li><li><a href=\"#3_Implement_and_Test_the_Chosen_Transformation\"><span class=\"toc_number toc_depth_2\">6.3.<\/span> 3. Implement and Test the Chosen Transformation<\/a><\/li><li><a href=\"#4_Set_and_enforce_log_retention_and_deletion_rules\"><span class=\"toc_number toc_depth_2\">6.4.<\/span> 4. Set and enforce log retention and deletion rules<\/a><\/li><li><a href=\"#5_Document_and_communicate\"><span class=\"toc_number toc_depth_2\">6.5.<\/span> 5. Document and communicate<\/a><\/li><\/ul><\/li><li><a href=\"#Conclusion_Make_Logs_Useful_Without_Turning_Them_Into_a_Liability\"><span class=\"toc_number toc_depth_1\">7.<\/span> Conclusion: Make Logs Useful Without Turning Them Into a Liability<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Why_IP_Addresses_in_Hosting_Logs_Can_Count_as_Personal_Data\">Why IP Addresses in Hosting Logs Can Count as Personal Data<\/span><\/h2>\n<p>Both laws define personal data by reference to an identified or identifiable natural person. An IP can contribute to that identification when combined with timestamps, account\/session records, URLs or other information. Where that link makes a natural person identifiable, IP-based logs should be treated as personal data. NAT, shared addresses and private networks do not by themselves create an exemption. Assess the law\u2019s scope for the actual processing; do not assume both KVKK and GDPR automatically apply.<\/p>\n<p>In a typical hosting environment you log IPs in many places:<\/p>\n<ul>\n<li>Web server access logs and error logs (Nginx, Apache, LiteSpeed, reverse proxies)<\/li>\n<li>Mail logs (SMTP connections, authentication attempts, spam filtering)<\/li>\n<li>Control panel and SSH access logs (cPanel, DirectAdmin, Plesk, plain SSH)<\/li>\n<li>Application logs (WordPress, Laravel, custom APIs, admin panel activities)<\/li>\n<li>Security tools (WAF, Fail2ban, IDS\/IPS, rate limiting systems)<\/li>\n<\/ul>\n<p>An IP, a request path like <code>\/account<\/code>, a user agent and a session cookie can help link activity to a specific user, especially if matching account or session records are available. This is why <strong>KVKK\/GDPR compliance cannot ignore log files<\/strong>. If logs contain personal data, purpose limitation, data minimization and retention limits apply, along with applicable data-subject rights, subject to each law\u2019s conditions and exceptions. We have already covered <a href=\"https:\/\/www.dchost.com\/blog\/en\/hosting-email-log-retention\/\">log retention on hosting and email infrastructure for KVKK\/GDPR compliance<\/a>; in this article we will focus specifically on anonymization and IP masking.<\/p>\n<h2><span id=\"Purpose_Legal_Basis_Roles_and_Retention\">Purpose, Legal Basis, Roles and Retention<\/span><\/h2>\n<p>Before masks and hashes, determine what each log is for and which processing condition applies. <a href=\"https:\/\/op.europa.eu\/o\/opportal-service\/download-handler?identifier=3e485e15-11bd-11e6-ba9a-01aa75ed71a1&amp;format=xhtml&amp;language=en&amp;productionSystem=cellar&amp;part=\" rel=\"nofollow noopener\" target=\"_blank\">GDPR Articles 4\u20136 and Recitals 26\/30<\/a> and the <a href=\"https:\/\/www.kvkk.gov.tr\/Icerik\/6649\/Personal-Data-Protection-Law\" rel=\"nofollow noopener\" target=\"_blank\">KVKK Law published by the Authority<\/a> are primary references; their wording and conditions are not identical. A hosting provider is not automatically a processor for every operation: roles depend on who determines the purposes and means and who acts on whose behalf. Possible grounds to assess include:<\/p>\n<ul>\n<li><strong>Contract:<\/strong> only where the specific processing meets the applicable necessity test for the contract; routing traffic does not justify retaining every request.<\/li>\n<li><strong>Legitimate interests:<\/strong> a security or debugging purpose does not establish this ground on its own. Assess necessity and the individual\u2019s rights under the relevant law.<\/li>\n<li><strong>Legal obligation:<\/strong> identify the actual applicable requirement and affected records; a general \u201csecurity log\u201d or \u201cmail log\u201d label is not a retention mandate.<\/li>\n<\/ul>\n<p>Once you know your legal basis, KVKK\/GDPR expect you to apply:<\/p>\n<ul>\n<li><strong>Data minimization<\/strong>: log only what you really need; drop or anonymize the rest.<\/li>\n<li><strong>Purpose limitation<\/strong>: do not reuse security logs for unrelated marketing analytics.<\/li>\n<li><strong>Retention limits<\/strong>: define and implement clear log retention periods, including backups.<\/li>\n<\/ul>\n<p>The following is a hypothetical retention policy, not a KVKK\/GDPR default. Use these periods only if a documented need and any applicable legal requirements support them:<\/p>\n<ul>\n<li>Detailed security logs: for example 7\u201330 days only where a documented need and applicable law justify that duration; consider a shorter window when sufficient.<\/li>\n<li>Application access logs: an example review\/deletion point of 7\u201330 days must also be justified. Masking at that point does not make the remaining records anonymous.<\/li>\n<li>Analytics: omit IP from the outset if unnecessary; otherwise use a justified reduced field and assess the whole record\u2019s linkability.<\/li>\n<\/ul>\n<p>The right balance depends on your risk profile, business needs and legal context. If you are still working out retention windows, you may find our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/backup-retention-kvkk-gdpr\/\">how to define backup and data retention periods under KVKK\/GDPR rules vs real storage costs<\/a> useful. Once your retention policy is clear, anonymization and IP masking can help reduce risk. Masking alone does not justify keeping logs longer: records that remain identifiable still need a justified retention period. Only genuinely anonymous outputs can be treated as no longer personal data.<\/p>\n<h2><span id=\"Log_Anonymization_vs_Pseudonymization_Whats_the_Difference\">Log Anonymization vs Pseudonymization: What\u2019s the Difference?<\/span><\/h2>\n<p>In compliance conversations, two words are often mixed: <strong>anonymization<\/strong> and <strong>pseudonymization<\/strong>. For hosting logs the distinction is crucial.<\/p>\n<h3><span id=\"True_anonymization\">True anonymization<\/span><\/h3>\n<p>Anonymization aims to make data no longer relate to an identifiable natural person. GDPR Recital 26 considers the means reasonably likely to be used for identification, including by others; the <a href=\"https:\/\/www.kvkk.gov.tr\/Icerik\/2038\/kisisel-verilerin-silinmesi-yok-edilmesi-veya-anonim-hale-getirilmesi\" rel=\"nofollow noopener\" target=\"_blank\">KVKK Authority\u2019s anonymization explanation<\/a> includes linkage with other data. Not being able to reverse one transformation is insufficient. Possible steps toward that goal, none sufficient on its own, include:<\/p>\n<ul>\n<li>Drop IPs or reduce their precision. IPv4 \/24 and IPv6 \/64 can still retain identifying network or subscriber information.<\/li>\n<li>Remove user IDs, emails, bodies and identifying values in URLs, query strings, cookies and headers; inspect error messages and duplicate fields too.<\/li>\n<li>Coarsen time and aggregate events where individual records are unnecessary. Rare event combinations, small groups or a unique role can remain identifiable.<\/li>\n<\/ul>\n<p>Only outputs that meet the applicable anonymization standard can be treated as no longer personal data. The processing of identifiable originals to produce them, and any retained identifiable copies, still require the applicable safeguards and lawful basis. A filename, mask or aggregate label does not establish this result.<\/p>\n<h3><span id=\"Pseudonymization\">Pseudonymization<\/span><\/h3>\n<p>Pseudonymization replaces identifiers such as IPs or user IDs while leaving attribution possible using additional information kept separately. Depending on the method, a key, a token table or matching records may allow you to <strong>re\u2011identify users<\/strong>. Hashing is not decryption: a salt does not provide a direct way to reverse a hash.<\/p>\n<ul>\n<li>A plain hash of an IP, including a public-salt hash, is not a sufficient recipe: candidate IPv4 addresses can be enumerated and matched.<\/li>\n<li>Encryption may preserve attribution through a separately protected key.<\/li>\n<li>Random tokens may preserve attribution through a separate mapping table. A random identifier alone does not prove anonymity.<\/li>\n<\/ul>\n<p>For optional IP correlation, the complete HMAC example below uses a separate secret key, an explicit service scope and a day. It remains a linkable value; it is not a decryption mechanism or a compliance certificate.<\/p>\n<p>For an operator that can still attribute or correlate these records using additional information, pseudonymization does not remove the personal-data obligations. It can reduce breach impact if that information is protected separately; the benefit also depends on the remaining log fields. A salt does not decrypt a hash, and a secret key does not prevent linkage through other data.<\/p>\n<h3><span id=\"When_to_use_which_for_hosting_logs\">When to use which for hosting logs?<\/span><\/h3>\n<ul>\n<li><strong>Security\/fraud:<\/strong> linkable pseudonyms or full IPs may be needed for a justified period; an IP alone does not identify a particular attacker.<\/li>\n<li><strong>Capacity\/performance:<\/strong> use aggregate counts or reduced fields if they meet the analysis need. A prefix does not guarantee city\/ASN accuracy or anonymity.<\/li>\n<li><strong>Support:<\/strong> start with synthetic reproduction and safe fields; justify any temporary detailed production logging, restrict access and enforce deletion.<\/li>\n<\/ul>\n<p>One design option separates a tightly restricted, justified security stream from a source-minimized analytics stream. The latter need not receive the full raw logs first. Keep potentially identifiable masked\/HMAC records within the personal-data controls; only a whole-dataset assessment can support an anonymity conclusion.<\/p>\n<h2><span id=\"Source-Side_Minimization_in_Nginx_and_Apache\">Source-Side Minimization in Nginx and Apache<\/span><\/h2>\n<p>First decide whether this particular access log needs an IP at all. If status counts are sufficient, omit client and request fields. If a network prefix is necessary, use a real address parser in a reviewed producer or pipeline. Formatting and address transformation are separate operations.<\/p>\n<h3><span id=\"Nginx_Select_the_Fields_You_Need\">Nginx: Select the Fields You Need<\/span><\/h3>\n<p><code>log_format<\/code> is defined in the <code>http<\/code> context and selected by the applicable <code>access_log<\/code>. It does not calculate a network prefix. For a separate access stream needing only status codes:<\/p>\n<pre class=\"language-nginx line-numbers\"><code class=\"language-nginx\"># Inside the http {} context; review inherited and per-vhost logs too.\nlog_format reduced escape=json &#039;{&quot;status&quot;:$status}&#039;;\n# In the intended server {} context:\naccess_log \/var\/log\/nginx\/access_reduced.log reduced;\n<\/code><\/pre>\n<p>A 204 response produces <code>{\"status\":204}<\/code> in the selected log. This omits IP, username, URL\/query, Referer, user agent and cookies. <code>escape=json<\/code> provides escaping, not anonymization. Review every virtual host\/location, inherited setting and additional log target; validate the complete configuration with <code>nginx -t<\/code> before deployment.<\/p>\n<p>When a prefix is needed, IPv4 \/24 converts <code>192.0.2.45<\/code> to <code>192.0.2.0\/24<\/code>; \/16 gives <code>192.0.0.0\/16<\/code>. For IPv6, <code>2001:db8:abcd:1234:5678:90ab:cdef:1<\/code> becomes <code>2001:db8:abcd:1234::\/64<\/code>, or <code>2001:db8:abcd::\/48<\/code> under a \/48 policy. These are reduction choices, not privacy-safe defaults.<\/p>\n<p>Nginx <code>map<\/code> performs string\/regex mapping. Cutting off the final textual IPv6 segment is not a \/48 or \/64 operation: compressed and mixed forms must be parsed correctly. A fallback such as <code>default $remote_addr<\/code> also writes unmatched addresses in full. Do not use an incomplete regex outline as a production mask.<\/p>\n<ul>\n<li>Use the IP-free format when no address detail is needed.<\/li>\n<li>For a prefix, use the parser below with a defined JSON producer; do not treat raw combined access logs as that input.<\/li>\n<li>Inspect error, WAF, proxy, application and security logs independently. Source omission in one access log does not remove raw copies elsewhere.<\/li>\n<\/ul>\n<p>Even an IP-free line is not a system-wide anonymity proof. File ordering, modification time, collector-added precise timestamps, labels and other data can support linkage. A separately restricted full-IP security log is an option only where its purpose, access and retention are justified. Keep the real client address used for authentication, authorization and rate limiting separate from log-only transformations.<\/p>\n<h3><span id=\"Apache_HTTPD_LogFormat_and_Client_Address_Selection\">Apache HTTPD: LogFormat and Client Address Selection<\/span><\/h3>\n<p><code>LogFormat<\/code> controls the recorded fields. <code>%h<\/code> is the remote hostname; with the default <code>HostnameLookups Off<\/code>, it normally records the IP. <code>%a<\/code> is the request\u2019s client address, potentially affected by <code>mod_remoteip<\/code>; <code>%{c}a<\/code> is the underlying connection peer. This correctly quoted combined format still contains raw identifiers and request data:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\"># Diagnostic contrast only: this retains raw identifiers and request data.\nLogFormat &quot;%a %l %u %t \\&quot;%r\\&quot; %&gt;s %b \\&quot;%{Referer}i\\&quot; \\&quot;%{User-Agent}i\\&quot;&quot; combined\n<\/code><\/pre>\n<ul>\n<li><a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_remoteip.html\" rel=\"nofollow noopener\" target=\"_blank\">mod_remoteip<\/a> selects a client address through a configured trusted-proxy chain; it is not a truncation module and can affect authorization.<\/li>\n<li><a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_substitute.html\" rel=\"nofollow noopener\" target=\"_blank\">mod_substitute<\/a> rewrites response bodies, not access log files.<\/li>\n<li>A custom module or external logging program needs an explicit transformation and failure policy; naming a module does not configure masking.<\/li>\n<\/ul>\n<p>For the same status-only stream as the Nginx example:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\"># In the intended VirtualHost; review inherited and additional CustomLog entries.\nLogFormat &quot;{\\&quot;status\\&quot;:%&gt;s}&quot; reduced\nCustomLog \/var\/log\/apache2\/access_reduced.log reduced\n<\/code><\/pre>\n<p>This writes <code>{\"status\":204}<\/code> for a 204 response. It does not change other <code>CustomLog<\/code>, <code>ErrorLog<\/code>, virtual-host, proxy or application outputs. Review file\/directory permissions and the complete <code>apachectl -t<\/code> result before using it.<\/p>\n<p>Apache can pipe logs to a program\u2019s standard input, but this is a separate integration, not a ready anonymizer. The program can run as the account that started httpd, often root. Review executable ownership\/permissions, supervision, buffering, rotation, output failure and rejection handling. The Python example below is a synthetic JSON filter; do not install it directly as a privileged pipe helper. If a source file or queue already contains raw data, transforming the outgoing copy does not erase it.<\/p>\n<h3><span id=\"Load_balancers_proxies_and_WAFs\">Load balancers, proxies and WAFs<\/span><\/h3>\n<p>A proxy, load balancer or WAF may record the peer address and derive another client address from forwarded metadata. Trust only a deliberately configured proxy chain, not an arbitrary client-supplied <code>X-Forwarded-For<\/code> header. Log masking does not automatically alter the address that reaches the backend, nor should log-only code silently change security decisions.<\/p>\n<p>Choose where to remove or transform sensitive log fields:<\/p>\n<ul>\n<li><strong>At the edge:<\/strong> remove or transform fields in edge logs. Separately decide which trusted address metadata the backend requires.<\/li>\n<li><strong>In the application:<\/strong> apply log-only transformations before serialization, even if the application needs the real address operationally.<\/li>\n<li><strong>In a central pipeline:<\/strong> inspect the complete received and outgoing records, including buffers\/retries; raw local copies and the transport before transformation remain in scope.<\/li>\n<\/ul>\n<p>Document which systems genuinely need full addresses and who can access them. Do not pass a masked address in place of the real security input just to simplify logging: it can merge different clients for authorization or rate limiting. Any restricted security copy still needs justified retention and deletion.<\/p>\n<h3><span id=\"Applicationlevel_logging\">Application\u2011level logging<\/span><\/h3>\n<p>Frameworks like WordPress, Laravel, Symfony, Django or Node.js apps often log user IDs, emails and IPs directly inside application logs. Even if you mask IPs at the web server level, these frameworks may still store full IPs from request metadata.<\/p>\n<p>Best practices include:<\/p>\n<ul>\n<li>Centralize transformations in log-writing paths only; keep real request handling separate.<\/li>\n<li>Default to excluding request\/response bodies, passwords, payment secrets, cookies, session IDs and authorization tokens.<\/li>\n<li>Use structured JSON with an allowlist of output fields. An IP or email can also appear inside message, stack trace, headers, URL or nested objects; changing only <code>client_ip<\/code> does not remove those copies.<\/li>\n<\/ul>\n<p>If you are already reading web server logs to debug HTTP status codes, you may find it useful to revisit how you log at the application layer as well; our earlier guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/apache-nginx-logs-4xx-5xx-errors\/\">reading hosting server logs to diagnose 4xx\u20135xx errors on Apache and Nginx<\/a> covers the operational side of those entries.<\/p>\n<h3><span id=\"A_Complete_IPv4IPv6_JSON_Filter\">A Complete IPv4\/IPv6 JSON Filter<\/span><\/h3>\n<p>Save the following as <code>log_filter.py<\/code> and use Python 3.11+. Its input contract is one UTF-8 JSON object per line: <code>client_ip<\/code> is a single address string, <code>status<\/code> an integer from 100 to 599, and <code>timestamp<\/code> exactly <code>YYYY-MM-DDTHH:MM:SSZ<\/code> in UTC. Neither raw combined\/error lines nor the separate status-only formats above meet this contract. Connect it only to a producer that deliberately supplies these fields.<\/p>\n<ul>\n<li><strong>IPv4:<\/strong> default \/24; choose \/16 in <code>ip_prefix<\/code> if your policy requires it and adjust expected outputs.<\/li>\n<li><strong>IPv6:<\/strong> default \/64; \/48 is also supported. Equivalent compressed\/expanded forms normalize consistently. IPv4-mapped IPv6 deliberately follows IPv4 policy; other IPv6 transition forms remain IPv6.<\/li>\n<li><strong>Rejection:<\/strong> malformed\/missing addresses, scoped values, CIDR strings, whitespace, XFF lists, IPv4 host:port and bracketed IPv6 endpoints do not fall back to raw input. A valid bare IPv6 suffix is not guessed to be a port.<\/li>\n<\/ul>\n<pre class=\"language-python line-numbers\"><code class=\"language-python\">&quot;&quot;&quot;Synthetic JSONL example: prefix reduction, not proof of anonymization.&quot;&quot;&quot;\nimport datetime\nimport ipaddress\nimport json\nimport sys\n\nMAX_LINE = 16384\n\n\ndef parse_ip(value):\n    if not isinstance(value, str) or not value or len(value) &gt; 45:\n        raise ValueError(&quot;invalid input&quot;)\n    if any(c.isspace() for c in value) or &quot;%&quot; in value or &quot;\/&quot; in value:\n        raise ValueError(&quot;invalid input&quot;)\n    address = ipaddress.ip_address(value)\n    if isinstance(address, ipaddress.IPv6Address) and address.ipv4_mapped:\n        address = address.ipv4_mapped\n    return address\n\n\ndef ip_prefix(value, v4=24, v6=64):\n    if v4 not in (16, 24) or v6 not in (48, 64):\n        raise ValueError(&quot;invalid policy&quot;)\n    address = parse_ip(value)\n    bits = v4 if address.version == 4 else v6\n    return str(ipaddress.ip_network((address, bits), strict=False))\n\n\ndef unique_object(pairs):\n    result = {}\n    for key, value in pairs:\n        if key in result:\n            raise ValueError(&quot;duplicate field&quot;)\n        result[key] = value\n    return result\n\n\ndef reject_constant(value):\n    raise ValueError(&quot;invalid constant&quot;)\n\n\ndef transform(line):\n    if len(line) &gt; MAX_LINE:\n        raise ValueError(&quot;oversized input&quot;)\n    record = json.loads(line, object_pairs_hook=unique_object,\n                        parse_constant=reject_constant)\n    if not isinstance(record, dict):\n        raise ValueError(&quot;invalid record&quot;)\n    status = record.get(&quot;status&quot;)\n    if type(status) is not int or not 100 &lt;= status &lt;= 599:\n        raise ValueError(&quot;invalid status&quot;)\n    stamp = record.get(&quot;timestamp&quot;)\n    if not isinstance(stamp, str) or len(stamp) != 20:\n        raise ValueError(&quot;invalid timestamp&quot;)\n    dt = datetime.datetime.strptime(stamp, &quot;%Y-%m-%dT%H:%M:%SZ&quot;)\n    if dt.strftime(&quot;%Y-%m-%dT%H:%M:%SZ&quot;) != stamp:\n        raise ValueError(&quot;invalid timestamp&quot;)\n    return {&quot;ip_prefix&quot;: ip_prefix(record.get(&quot;client_ip&quot;)),\n            &quot;hour_utc&quot;: dt.strftime(&quot;%Y-%m-%dT%H:00:00Z&quot;),\n            &quot;status_class&quot;: str(status \/\/ 100) + &quot;xx&quot;}\n\n\ndef main():\n    while True:\n        line = sys.stdin.buffer.readline(MAX_LINE + 1)\n        if not line:\n            break\n        if len(line) &gt; MAX_LINE:\n            while line and not line.endswith(b&quot;\\n&quot;):\n                line = sys.stdin.buffer.readline(MAX_LINE + 1)\n            sys.stderr.write(&quot;dropped_record\\n&quot;)\n            continue\n        try:\n            result = transform(line.decode(&quot;utf-8&quot;, errors=&quot;strict&quot;))\n        except (ValueError, TypeError, OverflowError, RecursionError):\n            # Never echo a rejected record or exception text.\n            sys.stderr.write(&quot;dropped_record\\n&quot;)\n            continue\n        sys.stdout.write(json.dumps(result, separators=(&quot;,&quot;, &quot;:&quot;)) + &quot;\\n&quot;)\n\n\nif __name__ == &quot;__main__&quot;:\n    main()\n<\/code><\/pre>\n<p>The CLI limits a line to 16 KiB and rejects duplicate JSON keys and nonstandard NaN\/Infinity. Only prefix, UTC hour bucket and status class leave the filter. Invalid input produces no stdout record and only the constant <code>dropped_record<\/code> on stderr; neither the rejected value nor exception text is printed. Process supervision, resource limits, output storage and collector integration need separate design and testing.<\/p>\n<p>Save the code as <code>log_filter.py<\/code> and run this synthetic smoke check from the same directory:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">python3.11 log_filter.py &lt;&lt;&#039;JSONL&#039;\n{&quot;client_ip&quot;:&quot;192.0.2.45&quot;,&quot;timestamp&quot;:&quot;2026-11-04T19:32:59Z&quot;,&quot;status&quot;:204,&quot;request&quot;:&quot;GET \/account?token=SYNTH_TOKEN&quot;,&quot;cookie&quot;:&quot;SYNTH_COOKIE&quot;}\nJSONL<\/code><\/pre>\n<p>Complete synthetic input and output:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">{&quot;client_ip&quot;:&quot;192.0.2.45&quot;,&quot;timestamp&quot;:&quot;2026-11-04T19:32:59Z&quot;,&quot;status&quot;:204,&quot;request&quot;:&quot;GET \/account?token=SYNTH_TOKEN&quot;,&quot;cookie&quot;:&quot;SYNTH_COOKIE&quot;}\n\u2192\n{&quot;ip_prefix&quot;:&quot;192.0.2.0\/24&quot;,&quot;hour_utc&quot;:&quot;2026-11-04T19:00:00Z&quot;,&quot;status_class&quot;:&quot;2xx&quot;}<\/code><\/pre>\n<p>For the same timestamp\/status, <code>2001:db8:abcd:1234::1<\/code> produces <code>{\"ip_prefix\":\"2001:db8:abcd:1234::\/64\",\"hour_utc\":\"2026-11-04T19:00:00Z\",\"status_class\":\"2xx\"}<\/code>; <code>::ffff:192.0.2.45<\/code> gives the IPv4 output above. Invalid addresses such as <code>2001:db8::1::2<\/code>, <code>fe80::1%eth0<\/code> and <code>unknown<\/code>, or a raw line such as <code>error: 198.51.100.23 token=SYNTH_SECRET<\/code>, produce no output record and only <code>dropped_record<\/code>.<\/p>\n<p><a href=\"https:\/\/docs.python.org\/3.11\/library\/ipaddress.html\" rel=\"nofollow noopener\" target=\"_blank\">Python\u2019s ipaddress documentation<\/a> describes parsing and network masking. A retained prefix may still identify a household\/subscriber; hour buckets, small groups and external records can restore linkage. Neither city\/ASN accuracy nor anonymity follows from this code.<\/p>\n<p>Whatever pattern you pick, document it in your privacy policy or internal processing register. If regulators ask how you anonymize logs, it is better to show a clear, consistent method than an ad\u2011hoc set of scripts nobody fully remembers.<\/p>\n<h3><span id=\"Optional_HMAC_Pseudonyms_for_Limited_Correlation\">Optional HMAC Pseudonyms for Limited Correlation<\/span><\/h3>\n<p>A public salt or plain SHA-256 is not sufficient protection for low-entropy IP inputs. Use a separately protected random secret key when keyed linkage is necessary. Save <code>ip_pseudonym.py<\/code> beside <code>log_filter.py<\/code>; the caller supplies the key from a restricted secret store:<\/p>\n<pre class=\"language-python line-numbers\"><code class=\"language-python\">&quot;&quot;&quot;Optional keyed linkage for logging; still potentially personal data.&quot;&quot;&quot;\nimport datetime\nimport hashlib\nimport hmac\nimport json\nimport re\nfrom log_filter import parse_ip\n\n\ndef ip_pseudonym(value, *, key, scope, epoch):\n    if not isinstance(key, bytes) or len(key) &lt; 32:\n        raise ValueError(&quot;invalid key&quot;)\n    if not isinstance(scope, str) or not re.fullmatch(r&quot;[a-z0-9_-]{1,64}&quot;, scope):\n        raise ValueError(&quot;invalid scope&quot;)\n    if not isinstance(epoch, str) or len(epoch) != 10:\n        raise ValueError(&quot;invalid epoch&quot;)\n    if datetime.date.fromisoformat(epoch).isoformat() != epoch:\n        raise ValueError(&quot;invalid epoch&quot;)\n    message = json.dumps([scope, epoch, str(parse_ip(value))],\n                         separators=(&quot;,&quot;, &quot;:&quot;)).encode(&quot;ascii&quot;)\n    return &quot;h1.&quot; + hmac.new(key, message, hashlib.sha256).hexdigest()\n<\/code><\/pre>\n<p>Use at least 32 random bytes in production, kept out of Git, URLs, command arguments and logs. The service\/purpose <code>scope<\/code> and UTC day <code>epoch<\/code> are serialized without ambiguous concatenation. On failure, reject the logging record without printing input, key or exception text; never fall back to the full IP.<\/p>\n<p>For a reproducible test only, the public key <code>bytes(range(32))<\/code>, IP <code>192.0.2.45<\/code>, scope <code>edge-a<\/code> and day <code>2026-11-04<\/code> produce:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">h1.328802d8241dfab3f33d51b1bcdce32ad0699238e42271ad53a690af2a3a5961<\/code><\/pre>\n<p>Never use that test key in production. The same normalized address\/key\/scope\/day gives the same value; changing the scope, day or key changes it. A retained key can still calculate candidate addresses for earlier days. Adding a date is not key destruction: if required, use independent epoch keys and an explicit destruction policy covering backups. Key deletion alone does not anonymize the remaining record.<\/p>\n<p><a href=\"https:\/\/docs.python.org\/3.11\/library\/hmac.html\" rel=\"nofollow noopener\" target=\"_blank\">HMAC<\/a> is not encryption or direct decryption. Someone holding the key can calculate candidate IPs, and other fields can link events. Shared addresses merge different people; address changes split one person. Treat these log pseudonyms as potentially personal data and create cross-service linkage only where necessary.<\/p>\n<h2><span id=\"Centralized_Logging_and_Anonymization_Pipelines\">Centralized Logging and Anonymization Pipelines<\/span><\/h2>\n<p>Nginx uses <code>log_format<\/code>; Apache uses <code>LogFormat<\/code>. A format change can remove a field but does not by itself transform its value or clean other logs. Multiple servers, containers and services add database, mail, queue, cache, panel and security outputs, so map all producers and destinations before centralizing them.<\/p>\n<p>A central pipeline helps apply a consistent policy across sources. Instead of relying only on local files, you can:<\/p>\n<ul>\n<li>Use a supported agent such as Grafana Alloy, Filebeat, Fluent Bit or rsyslog with a reviewed input\/output contract.<\/li>\n<li>Use protected transport to a suitable log store such as Loki, Elasticsearch or OpenSearch. Prometheus stores time-series metrics, not the same raw log stream.<\/li>\n<li>Minimize before unnecessary copies are created; inspect local files, buffers, retry\/dead-letter paths and central stored records. Centralization alone removes none of them.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/grafana.com\/docs\/loki\/latest\/send-data\/promtail\/\" rel=\"nofollow noopener\" target=\"_blank\">Promtail reached end of life on March 2, 2026<\/a>; choose Alloy or another supported client for new deployments and migrate existing installations. Our guides on <a href=\"https:\/\/www.dchost.com\/blog\/en\/multi-server-centralized-logging-elk-loki\/\">centralizing logs with ELK and Loki<\/a> and <a href=\"https:\/\/www.dchost.com\/blog\/en\/loki-vps-labels-retention-alerting\/\">VPS log management with Loki, retention and alerts<\/a> provide related context; treat older Promtail examples as migration material.<\/p>\n<h3><span id=\"Where_Should_the_Pipeline_Reduce_Sensitive_Data\">Where Should the Pipeline Reduce Sensitive Data?<\/span><\/h3>\n<p>Four possible processing layers have different exposure boundaries:<\/p>\n<ol>\n<li><strong>Source:<\/strong> write only selected fields to reduce raw copies from the outset.<\/li>\n<li><strong>Agent:<\/strong> transform and reserialize the outgoing record. Reading a local file does not remove its original data.<\/li>\n<li><strong>Gateway:<\/strong> apply a strict input\/output contract before forwarding; inspect queues, transport and parse failures.<\/li>\n<li><strong>Index\/storage:<\/strong> transform before indexing where supported, but check stored source documents, failure indices and earlier copies. Hiding a field at query time is not erasure.<\/li>\n<\/ol>\n<p>Masking or removing sensitive fields at the source or agent reduces what is sent to third\u2011party tools, but any raw local files or buffers still need protection and retention limits. For an internal, self\u2011hosted log cluster on a VPS or <a href=\"https:\/\/www.dchost.com\/dedicated-server\">dedicated server<\/a>, one hypothetical design is to use the following separation. The periods below are illustrative, not KVKK\/GDPR requirements; select and justify retention for each purpose:<\/p>\n<ul>\n<li>A restricted security index might retain necessary full addresses for 7\u201330 days if justified.<\/li>\n<li>A separate analytics index might use 6\u201312 months only where needed; masking or hashing does not establish anonymity or authorize longer retention.<\/li>\n<li>Limit who can query\/export each dataset, log administrative access and include backups and incident holds in the deletion plan.<\/li>\n<\/ul>\n<h3><span id=\"Structured_logs_and_fieldlevel_masking\">Structured logs and field\u2011level masking<\/span><\/h3>\n<p>Structured JSON or key-value records make field selection and testing more explicit than regex matching over an entire free-form line. They are not inherently anonymous; operate on fields and verify the final serialized output:<\/p>\n<ul>\n<li>Allowlist the fields that will actually leave the pipeline; discard unnecessary free-form messages and nested raw request data.<\/li>\n<li>Transform <code>client_ip<\/code> only if needed and inspect other fields for duplicate addresses or identifiers.<\/li>\n<li>Use keyed pseudonyms for necessary linkage, with separate secret handling and a limited scope\/epoch. A salted user ID is not proof of anonymity or a reason to link every service.<\/li>\n<\/ul>\n<p>On stacks like Loki or Elasticsearch, this might be implemented via:<\/p>\n<ul>\n<li><a href=\"https:\/\/grafana.com\/docs\/alloy\/latest\/reference\/components\/loki\/loki.process\/\" rel=\"nofollow noopener\" target=\"_blank\">Alloy loki.process<\/a> separates extracted values, labels, structured metadata, log timestamp and line. <code>stage.label_drop<\/code> removes a label; it does not rewrite the raw line. <code>stage.output<\/code> changes the forwarded line to an extracted value, which must first be constructed as safe output. Missing\/invalid inputs must be dropped, not passed through.<\/li>\n<li>Elasticsearch\/OpenSearch ingest processing must be checked against the actual stored document and failure path, not just the dashboard view. Source files, spool\/retry queues and backups remain separate copies.<\/li>\n<\/ul>\n<p>Also examine precise timestamps and labels added by the collector after the filter. A rounded time inside JSON does not coarsen Loki\u2019s separate entry timestamp. Do not use IPs, emails or user IDs as convenient metric\/log labels without a justified need.<\/p>\n<p>Validate the actual outgoing payload and stored line\/document, plus labels, metadata and time. Inject a malformed record and an output failure; ensure neither path logs the raw rejected record or silently bypasses the filter. Monitor rejection counts without embedding source data in the metric. These controls make the data flow reviewable but do not certify compliance.<\/p>\n<h2><span id=\"A_Logging_Plan_for_Your_Hosting_Environment\">A Logging Plan for Your Hosting Environment<\/span><\/h2>\n<p>Bringing these ideas together, the following hypothetical blueprint illustrates logging choices for VPS, dedicated or colocation setups. It must be adapted to the actual data, purposes and applicable legal requirements; it does not establish compliance by itself.<\/p>\n<h3><span id=\"1_Classify_your_logs_by_purpose\">1. Classify your logs by purpose<\/span><\/h3>\n<ul>\n<li><strong>Security and access logs<\/strong>: SSH, control panel, WAF, firewall, authentication, DDoS mitigation.<\/li>\n<li><strong>Operational logs<\/strong>: web access\/error, database slow logs, application exceptions.<\/li>\n<li><strong>Business\/analytics logs<\/strong>: funnel tracking, A\/B testing, event analytics.<\/li>\n<\/ul>\n<p>Assess the legal basis and retention needs for each category; they need not all differ. Security logging does not automatically justify longer retention, and invoking legitimate interest is not a substitute for assessing the applicable requirements. Analytics logs may be aggregated and anonymized earlier where individual records are unnecessary.<\/p>\n<p>\u201cTechnical\u201d fields such as exact time, route, response bytes or duration can become identifying in combination. Inventory them alongside direct identifiers and credentials; these engineering groupings are not statutory special-category definitions.<\/p>\n<h3><span id=\"2_Decide_where_full_IPs_are_truly_needed\">2. Decide where full IPs are truly needed<\/span><\/h3>\n<p>Ask your teams concrete questions:<\/p>\n<ul>\n<li>Does every access log need an IP, or only a justified security stream?<\/li>\n<li>Would aggregate counts, a network prefix or a limited pseudonym meet the need?<\/li>\n<li>Can support reproduce the issue with synthetic data and safe fields?<\/li>\n<li>Where do raw values reappear in errors, URLs, headers, cookies, bodies, labels, queues, exports or backups?<\/li>\n<\/ul>\n<p>Default configuration is not a reason to keep a field. Document necessity, expected utility and residual identification risk before selecting omission, masking or a restricted raw stream. Do not assume a simple regex search for an email symbol or phone prefix finds every encoded or fragmented identifier.<\/p>\n<h3><span id=\"3_Implement_and_Test_the_Chosen_Transformation\">3. Implement and Test the Chosen Transformation<\/span><\/h3>\n<p>Select a specific web-server, application, agent or ingestion path. On managed\/shared hosting, verify access and supported configuration changes with the provider; a VPS plan alone is not an anonymization service. A possible arrangement is:<\/p>\n<ul>\n<li>Use the status-only Apache\/Nginx format when enough; otherwise connect a defined JSON producer to the tested prefix\/HMAC logic.<\/li>\n<li>Keep any justified detailed security stream separately protected and time-limited. Do not alter authorization or rate-limiting inputs merely to change a log field.<\/li>\n<li>At the collector, verify the final serialized line, labels, metadata and timestamps; source files and failed-record queues need separate controls.<\/li>\n<\/ul>\n<p>Test IPv4, compressed\/expanded IPv6, mapped IPv6, malformed\/scoped\/missing addresses, duplicate JSON keys, bad UTF-8 and oversized lines. Add synthetic cookies, tokens, emails and addresses to URLs, bodies, headers and errors. Compare complete output and rejection behavior; repeat operational acceptance after restart, rotation and pipeline failure. The local examples verify transformation and configuration syntax, not a running collector deployment or a whole-system legal assessment.<\/p>\n<p>If you are also reviewing security hardening at the same time, you may want to check our broader <a href=\"https:\/\/www.dchost.com\/blog\/en\/vps-security-ssh-firewalls-recovery\/\">guide on securing VPS servers against real\u2011world threats<\/a>, since logging and security configuration usually go hand in hand.<\/p>\n<h3><span id=\"4_Set_and_enforce_log_retention_and_deletion_rules\">4. Set and enforce log retention and deletion rules<\/span><\/h3>\n<p>Anonymization is not a substitute for <strong>deleting data you no longer need<\/strong>. Once retention periods are agreed, enforce them via:<\/p>\n<ul>\n<li><code>logrotate<\/code> rotates\/removes files; it does not mask their contents. <code>rotate N<\/code> counts copies, not days, and <code>maxage<\/code> is checked on rotation. Verify scheduling, ownership and reopening the file.<\/li>\n<li>Use the appropriate lifecycle mechanism for the selected Elasticsearch\/OpenSearch version or Loki retention. <a href=\"https:\/\/grafana.com\/docs\/loki\/latest\/operations\/storage\/retention\/\" rel=\"nofollow noopener\" target=\"_blank\">Loki Compactor retention<\/a> is not enabled by default; confirm actual deletion rather than assuming an index setting is enough.<\/li>\n<li>If logs live in SQL, enforce a reviewed deletion job and verify replicas\/backups. Preserve a documented incident\/legal hold only where applicable.<\/li>\n<\/ul>\n<p>Do not forget backups: identifiable log records in backups remain personal data. Our article on <a href=\"https:\/\/www.dchost.com\/blog\/en\/kvkk-gdpr-turkey-eu-us-hosting\/\">choosing KVKK\/GDPR\u2011compliant hosting between Turkey, EU and US data centers<\/a> discusses how data localisation, backups and log retention interact in multi\u2011region designs.<\/p>\n<p>Include archive and restore behavior: deleting an active log does not remove an older full backup. Restoring that backup must not silently put expired data back into ordinary use. Data-center location alone does not establish lawful processing or transfer.<\/p>\n<h3><span id=\"5_Document_and_communicate\">5. Document and communicate<\/span><\/h3>\n<p>Finally, KVKK\/GDPR are not only about technology but also about <strong>documentation<\/strong> and <strong>transparency<\/strong>. Make sure you:<\/p>\n<ul>\n<li>Record each log\u2019s purpose, applicable processing condition, fields, controller\/processor roles, recipients, access and retention\/deletion owner.<\/li>\n<li>Explain logging purposes in the applicable transparency notice without disclosing operational secrets.<\/li>\n<li>Maintain a process for applicable access, erasure and objection requests, subject to the conditions\/exceptions of the relevant law. Document any justified limitation and avoid identifying individuals unnecessarily just to attach a log record to them.<\/li>\n<li>Keep transformation versions and synthetic acceptance results; review rare combinations and linkage with other datasets as the system changes.<\/li>\n<\/ul>\n<p>Written rules help teams apply and demonstrate the actual controls. Documentation does not replace deletion tests, access reviews or assessing whether the complete dataset remains identifiable.<\/p>\n<h2><span id=\"Conclusion_Make_Logs_Useful_Without_Turning_Them_Into_a_Liability\">Conclusion: Make Logs Useful Without Turning Them Into a Liability<\/span><\/h2>\n<p>Logs are one of the most valuable assets in any hosting environment. They help you catch performance regressions, track down 500 errors, investigate suspicious logins and tune your infrastructure over time. Under KVKK and GDPR, though, the same logs can quickly turn into a liability if they store full IPs and sensitive identifiers everywhere, with no clear purpose or retention limit.<\/p>\n<p>Use source-side omission, tested prefix reduction, limited keyed correlation and enforceable retention where each meets a defined need. Start with one log source and synthetic examples, then inspect the proxy, application, collector, storage and backup copies. The result should be useful and reviewable; masking alone cannot prove anonymity or compliance.<\/p>\n<p>For VPS, dedicated or colocation infrastructure, confirm which log controls and managed support your actual service includes. Align the technical plan with your processing purposes and applicable legal requirements. Our related guides on <a href=\"https:\/\/www.dchost.com\/blog\/en\/kvkk-gdpr-turkey-eu-us-hosting\/\">hosting location and KVKK\/GDPR considerations<\/a> and <a href=\"https:\/\/www.dchost.com\/blog\/en\/hosting-email-log-retention\/\">hosting and mail log retention<\/a> can help organize the next review.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Reduce unnecessary fields in Apache and Nginx logs, then verify IPv4\/IPv6 prefixes, HMAC pseudonyms, pipeline failures and retention across every copy.<\/p>\n","protected":false},"author":1,"featured_media":12821,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-3686","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/comments?post=3686"}],"version-history":[{"count":8,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3686\/revisions"}],"predecessor-version":[{"id":12823,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3686\/revisions\/12823"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media\/12821"}],"wp:attachment":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media?parent=3686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/categories?post=3686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/tags?post=3686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}