{"id":7945,"date":"2026-07-29T13:11:22","date_gmt":"2026-07-29T11:11:22","guid":{"rendered":"https:\/\/logmanager.com\/?page_id=7945"},"modified":"2026-07-29T14:49:48","modified_gmt":"2026-07-29T12:49:48","slug":"log-retention-kalkulacka","status":"publish","type":"page","link":"https:\/\/logmanager.com\/cs\/log-retention-kalkulacka\/","title":{"rendered":"Kalkula\u010dka doby uchov\u00e1v\u00e1n\u00ed log\u016f"},"content":{"rendered":"\n<!doctype html>\n<html lang=\"cs\">\n<head>\n<meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>Kalkula\u010dka doby uchov\u00e1v\u00e1n\u00ed log\u016f<\/title>\n<script src=\"https:\/\/cdn.sheetjs.com\/xlsx-0.20.3\/package\/dist\/xlsx.full.min.js\"><\/script>\n<style>\n:root{--lm-accent:rgb(15,15,215);--lm-bg:#f5f5f5;--lm-text:#041c35;--lm-muted:#6b7280;--lm-line:#e5e7eb}\n*{box-sizing:border-box}.lm-estimator{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",sans-serif;padding:64px 16px 80px;background:var(--lm-bg);color:var(--lm-text)}\n.lm-inner{max-width:1120px;margin:0 auto}.lm-header{text-align:center;margin-bottom:28px}.lm-title{font-family:Sora,sans-serif;font-size:clamp(1.75rem,4vw,3rem);line-height:1.12;margin:0 0 16px}.lm-subtitle{max-width:780px;margin:0 auto;font-size:1.05rem;line-height:1.65}\n.lm-top-toggle{display:flex;justify-content:center;margin:0 0 28px}.lm-toggle{display:inline-flex;padding:4px;gap:4px;border-radius:999px;background:rgba(15,15,215,.08)}.lm-toggle button{border:0;background:transparent;padding:10px 18px;border-radius:999px;cursor:pointer;font-weight:600;color:#3f4650}.lm-toggle button.is-active{background:var(--lm-accent);color:#fff;box-shadow:0 7px 20px rgba(15,15,215,.3)}\n.lm-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:30px;align-items:start}.lm-card{background:#fff;border-radius:28px;padding:28px;box-shadow:0 18px 45px rgba(15,23,42,.08)}.lm-card h3{font-size:1.15rem;margin:0 0 18px}.lm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.lm-field{padding:15px;border-radius:18px;background:#f9fafb}.lm-field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.lm-field-note{font-size:11px;line-height:1.45;color:#8a919d;margin-top:6px}.lm-input,.lm-select{width:100%;border:1px solid var(--lm-line);border-radius:999px;padding:10px 12px;background:#fff;font-size:14px;outline:0}.lm-input{text-align:right}.lm-select{text-align:left;-webkit-appearance:none;appearance:none;background-image:url(\"data:image\/svg+xml;charset=UTF-8,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.5 7.5l4.5 4.5 4.5-4.5z'\/%3E%3C\/svg%3E\");background-repeat:no-repeat;background-position:right 12px center;padding-right:30px}.lm-input:focus,.lm-select:focus{border-color:var(--lm-accent);box-shadow:0 0 0 2px rgba(15,15,215,.12)}\n.lm-reg-card{grid-column:1 \/ -1;padding:16px 18px;border-radius:18px;background:rgba(15,15,215,.05);border:1px solid rgba(15,15,215,.12);font-size:12.5px;line-height:1.6;color:#33415c}.lm-reg-card b{color:var(--lm-text)}\n.lm-table-wrap{overflow-x:auto}.lm-table{width:100%;border-collapse:collapse;font-size:13px}.lm-table th{text-align:left;color:var(--lm-muted);font-size:12px;padding:7px 5px;border-bottom:1px solid var(--lm-line)}.lm-table td{padding:6px 5px;vertical-align:middle}.lm-table .num{text-align:right}.lm-group td{padding-top:14px;font-size:11px;font-weight:700;text-transform:uppercase;color:#9ca3af}.lm-badge-eps{display:inline-flex;padding:3px 8px;border-radius:999px;background:rgba(15,15,215,.08);color:var(--lm-accent);font-size:11px}.lm-small-input{width:84px;border:1px solid var(--lm-line);border-radius:999px;padding:7px 9px;text-align:right}.lm-settings{border-top:1px solid var(--lm-line);margin-top:18px;padding-top:18px}.lm-settings-title{font-weight:700;margin-bottom:13px}.lm-hidden{display:none!important}\n.lm-output-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.lm-output-head h3{margin:0}.lm-live{padding:4px 10px;border-radius:999px;background:rgba(15,15,215,.08);color:var(--lm-accent);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.lm-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lm-metric{background:#f9fafb;border-radius:16px;padding:12px}.lm-metric-label{font-size:12px;color:var(--lm-muted);margin-bottom:4px}.lm-metric-value{font-size:15px;font-weight:700}.lm-total{margin:18px 0;padding:22px;border:1px solid var(--lm-line);border-radius:22px;background:radial-gradient(circle at top left,rgba(15,15,215,.12),#fff 48%)}.lm-total-label{font-size:13px;color:var(--lm-muted);margin-bottom:5px}.lm-total-value{font-size:clamp(2rem,5vw,3.1rem);font-weight:800;line-height:1.1}.lm-btn{width:100%;display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:999px;padding:12px 18px;background:var(--lm-accent);color:#fff;font-weight:700;cursor:pointer;box-shadow:0 12px 30px rgba(15,15,215,.3)}.lm-btn:hover{transform:translateY(-1px)}.lm-download-note,.lm-footnote{font-size:11px;color:#8a919d;line-height:1.55}.lm-download-note{margin-top:9px}.lm-footnote{margin-top:16px;padding-top:14px;border-top:1px solid var(--lm-line)}\n@media(max-width:900px){.lm-grid{grid-template-columns:1fr}}@media(max-width:620px){.lm-estimator{padding:44px 12px 60px}.lm-card{padding:20px;border-radius:22px}.lm-form-grid,.lm-metrics{grid-template-columns:1fr}.lm-toggle{width:100%}.lm-toggle button{flex:1;padding:9px 10px;font-size:12px}}\n<\/style>\n<\/head>\n<body style=\"margin:0\">\n<section class=\"lm-estimator\" id=\"lm-retention-calculator\">\n<div class=\"lm-inner\">\n<header class=\"lm-header\"><h1 class=\"lm-title\">Kalkula\u010dka doby uchov\u00e1v\u00e1n\u00ed log\u016f<\/h1><p class=\"lm-subtitle\">Zjist\u011bte b\u011b\u017en\u011b uv\u00e1d\u011bnou dobu uchov\u00e1v\u00e1n\u00ed log\u016f podle GDPR, ZoKB (NIS2), PCI DSS, HIPAA, ISO 27001, SOX a dal\u0161\u00edch r\u00e1mc\u016f a odhadn\u011bte pot\u0159ebnou kapacitu \u00falo\u017ei\u0161t\u011b. V\u00fdsledek je orienta\u010dn\u00ed odhad pro pl\u00e1nov\u00e1n\u00ed.<\/p><\/header>\n<div class=\"lm-top-toggle\"><div><span style=\"display:block;text-align:center;font-size:12px;font-weight:700;margin-bottom:8px;color:#4b5563\">Zp\u016fsob zad\u00e1n\u00ed objemu<\/span><div class=\"lm-toggle\" role=\"group\" aria-label=\"Zp\u016fsob zad\u00e1n\u00ed objemu\"><button type=\"button\" class=\"lm-mode-btn is-active\" data-mode=\"simple\">Odhad z prost\u0159ed\u00ed<\/button><button type=\"button\" class=\"lm-mode-btn\" data-mode=\"advanced\">Zn\u00e1m sv\u016fj denn\u00ed objem log\u016f<\/button><\/div><\/div><\/div>\n<div class=\"lm-grid\">\n<div class=\"lm-card\">\n<h3>Regulace \/ r\u00e1mec<\/h3>\n<div class=\"lm-form-grid\">\n<div class=\"lm-field\" style=\"grid-column:1 \/ -1\">\n<label for=\"lm-regulation\">R\u00e1mec<\/label>\n<select id=\"lm-regulation\" class=\"lm-select\">\n<option value=\"gdpr\">GDPR \u2014 bezpe\u010dnostn\u00ed a p\u0159\u00edstupov\u00e9 logy<\/option>\n<option value=\"nis2\" selected>ZoKB (NIS2)<\/option>\n<option value=\"pci\">PCI DSS v4.0<\/option>\n<option value=\"hipaa\">HIPAA<\/option>\n<option value=\"iso27001\">ISO\/IEC 27001<\/option>\n<option value=\"sox\">SOX (Sarbanes-Oxley)<\/option>\n<option value=\"custom\">Vlastn\u00ed \/ jin\u00e9<\/option>\n<\/select>\n<div class=\"lm-field-note\" id=\"lm-reg-note\">N\u00ed\u017ee se zobraz\u00ed typick\u00e9 doporu\u010den\u00ed. Pokud se va\u0161e z\u00e1sady li\u0161\u00ed, upravte pole doby uchov\u00e1v\u00e1n\u00ed.<\/div>\n<\/div>\n<div class=\"lm-reg-card\" id=\"lm-reg-card\"><\/div>\n<\/div>\n<section id=\"lm-simple-panel\" style=\"margin-top:22px\"><h3>Prost\u0159ed\u00ed<\/h3><div class=\"lm-form-grid\">\n<div class=\"lm-field\"><label for=\"lm-employees\">Zam\u011bstnanci<\/label><input id=\"lm-employees\" class=\"lm-input\" type=\"number\" min=\"0\" step=\"1\" value=\"25\"><div class=\"lm-field-note\">Pou\u017e\u00edv\u00e1 se pro odhad ud\u00e1lost\u00ed souvisej\u00edc\u00edch s pracovn\u00edmi stanicemi a identitou.<\/div><\/div>\n<div class=\"lm-field\"><label for=\"lm-servers\">Servery<\/label><input id=\"lm-servers\" class=\"lm-input\" type=\"number\" min=\"0\" step=\"1\" value=\"3\"><div class=\"lm-field-note\">Aplika\u010dn\u00ed, datab\u00e1zov\u00e9, souborov\u00e9 a infrastrukturn\u00ed servery.<\/div><\/div>\n<div class=\"lm-field\"><label for=\"lm-devices\">S\u00ed\u0165ov\u00e1 a bezpe\u010dnostn\u00ed za\u0159\u00edzen\u00ed<\/label><input id=\"lm-devices\" class=\"lm-input\" type=\"number\" min=\"0\" step=\"1\" value=\"2\"><div class=\"lm-field-note\">Firewally, p\u0159ep\u00edna\u010de, routery, VPN br\u00e1ny, IDS\/IPS a podobn\u00e1 za\u0159\u00edzen\u00ed.<\/div><\/div>\n<div class=\"lm-field\"><label for=\"lm-event-size-simple\">Pr\u016fm\u011brn\u00e1 velikost ud\u00e1losti<\/label><div style=\"display:flex;gap:8px;align-items:center\"><input id=\"lm-event-size-simple\" class=\"lm-input\" type=\"number\" min=\"1\" step=\"1\" value=\"700\"><span style=\"font-size:13px\">bajt\u016f<\/span><\/div><div class=\"lm-field-note\">700 bajt\u016f je b\u011b\u017en\u011b pou\u017e\u00edvan\u00fd p\u0159edpoklad pro pl\u00e1nov\u00e1n\u00ed.<\/div><\/div>\n<\/div><\/section>\n<section id=\"lm-advanced-panel\" class=\"lm-hidden\" style=\"margin-top:22px\"><h3>Zn\u00e1m\u00fd denn\u00ed objem<\/h3><div class=\"lm-form-grid\">\n<div class=\"lm-field\"><label for=\"lm-daily-gb\">Pr\u016fm\u011brn\u00fd objem log\u016f<\/label><div style=\"display:flex;gap:8px;align-items:center\"><input id=\"lm-daily-gb\" class=\"lm-input\" type=\"number\" min=\"0\" step=\"0.1\" value=\"10\"><span style=\"font-size:13px\">GB \/ den<\/span><\/div><div class=\"lm-field-note\">Pou\u017eijte aktu\u00e1ln\u00ed rychlost p\u0159\u00edjmu dat z va\u0161eho log managementu nebo SIEM platformy.<\/div><\/div>\n<\/div><\/section>\n<div class=\"lm-settings\"><div class=\"lm-settings-title\">Doba uchov\u00e1v\u00e1n\u00ed<\/div><div class=\"lm-form-grid\">\n<div class=\"lm-field\"><label for=\"lm-retention-days\">Doba uchov\u00e1v\u00e1n\u00ed<\/label><div style=\"display:flex;gap:8px;align-items:center\"><input id=\"lm-retention-days\" class=\"lm-input\" type=\"number\" min=\"1\" step=\"1\" value=\"365\"><span style=\"font-size:13px\">dn\u00ed<\/span><\/div><div class=\"lm-field-note\">P\u0159edvypln\u011bno podle vybran\u00e9ho r\u00e1mce. Kdykoli lze upravit podle vlastn\u00edch z\u00e1sad.<\/div><\/div>\n<div class=\"lm-field\"><label for=\"lm-hot-days\">Okam\u017eit\u011b dostupn\u00e9 (rychl\u00e9 \u00falo\u017ei\u0161t\u011b)<\/label><div style=\"display:flex;gap:8px;align-items:center\"><input id=\"lm-hot-days\" class=\"lm-input\" type=\"number\" min=\"0\" step=\"1\" value=\"90\"><span style=\"font-size:13px\">dn\u00ed<\/span><\/div><div class=\"lm-field-note\">N\u011bkter\u00e9 r\u00e1mce (nap\u0159. PCI DSS) vy\u017eaduj\u00ed, aby \u010d\u00e1st historie byla okam\u017eit\u011b dostupn\u00e1 k anal\u00fdze.<\/div><\/div>\n<\/div><\/div>\n<\/div>\n<aside class=\"lm-card\"><div class=\"lm-output-head\"><h3>Odhadovan\u00e1 kapacita \u00falo\u017ei\u0161t\u011b<\/h3><span class=\"lm-live\">\u017div\u00fd odhad<\/span><\/div><div class=\"lm-metrics\"><div class=\"lm-metric\"><div class=\"lm-metric-label\">Odhadovan\u00e9 EPS<\/div><div class=\"lm-metric-value\" id=\"lm-eps-display\">0<\/div><\/div><div class=\"lm-metric\"><div class=\"lm-metric-label\">Objem za den<\/div><div class=\"lm-metric-value\" id=\"lm-day-display\">0 GB<\/div><\/div><div class=\"lm-metric\"><div class=\"lm-metric-label\">Doba uchov\u00e1v\u00e1n\u00ed<\/div><div class=\"lm-metric-value\" id=\"lm-retention-display\">365 dn\u00ed<\/div><\/div><div class=\"lm-metric\"><div class=\"lm-metric-label\">Objem rychl\u00e9ho \u00falo\u017ei\u0161t\u011b<\/div><div class=\"lm-metric-value\" id=\"lm-hot-display\">0 GB<\/div><\/div><\/div><div class=\"lm-total\"><div class=\"lm-total-label\">Celkov\u00e1 odhadovan\u00e1 kapacita \u00falo\u017ei\u0161t\u011b<\/div><div class=\"lm-total-value\" id=\"lm-storage-display\">0 GB<\/div><\/div><button type=\"button\" class=\"lm-btn\" id=\"lm-download\">St\u00e1hnout v\u00fdpo\u010det (.xlsx)<\/button><div class=\"lm-download-note\">Se\u0161it obsahuje vybran\u00fd r\u00e1mec, zadan\u00e9 p\u0159edpoklady a vypo\u010d\u00edtan\u00e9 v\u00fdsledky.<\/div><div class=\"lm-footnote\">Uveden\u00e9 doby uchov\u00e1v\u00e1n\u00ed jsou b\u011b\u017en\u011b citovan\u00e1 doporu\u010den\u00ed pro pl\u00e1nov\u00e1n\u00ed, nikoli pr\u00e1vn\u00ed minimum. Po\u017eadavky se li\u0161\u00ed podle zem\u011b, odv\u011btv\u00ed, doporu\u010den\u00ed dozorov\u00fdch \u00fa\u0159ad\u016f a va\u0161eho vlastn\u00edho posouzen\u00ed rizik \u2014 ov\u011b\u0159te platn\u00e9 povinnosti s pr\u00e1vn\u00edm nebo compliance odd\u011blen\u00edm.<\/div><\/aside>\n<\/div><\/div><\/section>\n<script>\n(function(){\n'use strict';\nconst BYTES_PER_GB=1073741824, EMPLOYEE_EPS=2, SERVER_EPS=20, DEVICE_EPS=40;\nconst REGULATIONS={\n gdpr:{label:'GDPR \u2014 bezpe\u010dnostn\u00ed a p\u0159\u00edstupov\u00e9 logy',days:180,note:'GDPR nestanovuje pevnou dobu uchov\u00e1v\u00e1n\u00ed bezpe\u010dnostn\u00edch\/p\u0159\u00edstupov\u00fdch log\u016f. Podle z\u00e1sady omezen\u00ed ulo\u017een\u00ed by logy m\u011bly b\u00fdt uchov\u00e1v\u00e1ny pouze po dobu nezbytnou pro dan\u00fd bezpe\u010dnostn\u00ed \u00fa\u010del. B\u011b\u017en\u011b se pro p\u0159\u00edstupov\u00e9 a bezpe\u010dnostn\u00ed logy pou\u017e\u00edv\u00e1 <b>6\u201312 m\u011bs\u00edc\u016f<\/b>; del\u0161\u00ed doba vy\u017eaduje zdokumentovan\u00e9 od\u016fvodn\u011bn\u00ed.'},\n nis2:{label:'ZoKB (NIS2)',days:365,note:'ZoKB (z\u00e1kon o kybernetick\u00e9 bezpe\u010dnosti), kter\u00fd v \u010cR transponuje sm\u011brnici NIS2, s\u00e1m nep\u0159edepisuje p\u0159esn\u00fd po\u010det m\u011bs\u00edc\u016f pro uchov\u00e1v\u00e1n\u00ed log\u016f v textu z\u00e1kona \u2014 konkr\u00e9tn\u00ed lh\u016fty stanovuj\u00ed prov\u00e1d\u011bc\u00ed p\u0159edpisy a odv\u011btvov\u00e1 doporu\u010den\u00ed. <b>12 m\u011bs\u00edc\u016f<\/b> je \u0161iroce pou\u017e\u00edvan\u00e1 v\u00fdchoz\u00ed hodnota pro logy relevantn\u00ed pro incidenty, \u010dasto v souladu s prax\u00ed podle ISO 27001 nebo GDPR.'},\n pci:{label:'PCI DSS v4.0',days:365,note:'Po\u017eadavek 10.5.1 normy PCI DSS v4.0: uchov\u00e1vat historii auditn\u00edch log\u016f po dobu nejm\u00e9n\u011b <b>12 m\u011bs\u00edc\u016f<\/b>, p\u0159i\u010dem\u017e nejnov\u011bj\u0161\u00ed <b>3 m\u011bs\u00edce<\/b> mus\u00ed b\u00fdt okam\u017eit\u011b dostupn\u00e9 k anal\u00fdze (rychl\u00e9 \u00falo\u017ei\u0161t\u011b).',hot:90},\n hipaa:{label:'HIPAA',days:2190,note:'HIPAA nestanovuje konkr\u00e9tn\u00ed dobu uchov\u00e1v\u00e1n\u00ed auditn\u00edch log\u016f, av\u0161ak souvisej\u00edc\u00ed pravidlo o uchov\u00e1v\u00e1n\u00ed dokumentace (45 CFR \u00a7164.316(b)(2)(i)) vy\u017eaduje uchov\u00e1n\u00ed z\u00e1znam\u016f po dobu <b>6 let<\/b> od vytvo\u0159en\u00ed nebo posledn\u00ed \u00fa\u010dinnosti \u2014 \u010dasto se stejn\u00e1 lh\u016fta zrcadl\u00ed i pro auditn\u00ed logy.'},\n iso27001:{label:'ISO\/IEC 27001',days:365,note:'ISO\/IEC 27001 nestanovuje pevnou dobu uchov\u00e1v\u00e1n\u00ed \u2014 ur\u010duje ji va\u0161e posouzen\u00ed rizik a zdokumentovan\u00e1 politika logov\u00e1n\u00ed (p\u0159\u00edloha A, opat\u0159en\u00ed A.8.15). V praxi se b\u011b\u017en\u011b jako minimum pou\u017e\u00edv\u00e1 <b>12 m\u011bs\u00edc\u016f<\/b>, n\u011bkter\u00e9 organizace uchov\u00e1vaj\u00ed data 2\u20133 roky kv\u016fli audit\u016fm a trendov\u00e9 anal\u00fdze.'},\n sox:{label:'SOX (Sarbanes-Oxley)',days:2555,note:'Odd\u00edl 802 z\u00e1kona Sarbanes-Oxley vy\u017eaduje uchov\u00e1n\u00ed relevantn\u00edch obchodn\u00edch z\u00e1znam\u016f, v\u010detn\u011b podp\u016frn\u00e9 auditn\u00ed dokumentace, po dobu <b>7 let<\/b>.'},\n custom:{label:'Vlastn\u00ed \/ jin\u00e9',days:365,note:'Nastavte vlastn\u00ed dobu uchov\u00e1v\u00e1n\u00ed podle intern\u00ed politiky, smluvn\u00edch z\u00e1vazk\u016f nebo r\u00e1mce, kter\u00fd zde nen\u00ed uveden.'}\n};\nlet volMode='simple';\nconst $=id=>document.getElementById(id), num=el=>Math.max(0,parseFloat(el.value)||0);\nconst modeButtons=[...document.querySelectorAll('.lm-mode-btn')];\nfunction number(v,d=0){return Number(v).toLocaleString('cs-CZ',{minimumFractionDigits:d,maximumFractionDigits:d})}\nfunction storage(gb){if(!isFinite(gb)||gb<=0)return '0 GB';return gb>=1024?number(gb\/1024,2)+' TB':number(gb,2)+' GB'}\nfunction applyRegulation(){\n const reg=REGULATIONS[$('lm-regulation').value];\n $('lm-reg-card').innerHTML=reg.note;\n $('lm-retention-days').value=reg.days;\n if(reg.hot!==undefined)$('lm-hot-days').value=reg.hot;\n calculate();\n}\nfunction setVolMode(next){\n volMode=next;\n modeButtons.forEach(b=>b.classList.toggle('is-active',b.dataset.mode===volMode));\n $('lm-simple-panel').classList.toggle('lm-hidden',volMode!=='simple');\n $('lm-advanced-panel').classList.toggle('lm-hidden',volMode!=='advanced');\n calculate();\n}\nfunction calculate(){\n let eps=0,gbDay=0,eventSize=700,breakdown=[];\n const retention=Math.max(1,num($('lm-retention-days'))||365),hot=Math.max(0,num($('lm-hot-days'))||0);\n if(volMode==='simple'){\n  const employees=num($('lm-employees')),servers=num($('lm-servers')),devices=num($('lm-devices'));\n  eventSize=Math.max(1,num($('lm-event-size-simple'))||700);\n  breakdown=[['Zam\u011bstnanci',employees,EMPLOYEE_EPS,employees*EMPLOYEE_EPS],['Servery',servers,SERVER_EPS,servers*SERVER_EPS],['S\u00ed\u0165ov\u00e1 a bezpe\u010dnostn\u00ed za\u0159\u00edzen\u00ed',devices,DEVICE_EPS,devices*DEVICE_EPS]];\n  eps=breakdown.reduce((s,r)=>s+r[3],0);\n  gbDay=eps*eventSize*86400\/BYTES_PER_GB;\n }else{\n  gbDay=num($('lm-daily-gb'));\n  eps=gbDay*BYTES_PER_GB\/(eventSize*86400);\n  breakdown=[['Zn\u00e1m\u00fd denn\u00ed objem','',' ',gbDay+' GB\/den']];\n }\n const totalGb=gbDay*retention, hotGb=gbDay*hot;\n window.__lmState={mode:volMode,regulation:$('lm-regulation').value,regulationLabel:REGULATIONS[$('lm-regulation').value].label,retention,hot,eventSize,gbDay,totalGb,hotGb,breakdown};\n $('lm-eps-display').textContent=volMode==='simple'?number(eps,0):'\u2014';\n $('lm-day-display').textContent=number(gbDay,2)+' GB';\n $('lm-retention-display').textContent=number(retention,0)+' dn\u00ed';\n $('lm-hot-display').textContent=storage(hotGb);\n $('lm-storage-display').textContent=storage(totalGb);\n}\nfunction downloadXlsx(){\n if(typeof XLSX==='undefined'){alert('Knihovnu pro tabulkov\u00e9 se\u0161ity se nepoda\u0159ilo na\u010d\u00edst. Zkontrolujte pros\u00edm p\u0159ipojen\u00ed str\u00e1nky a zkuste to znovu.');return}\n calculate();\n const s=window.__lmState, rows=[];\n rows.push(['Logmanager \u2014 v\u00fdpo\u010det doby uchov\u00e1v\u00e1n\u00ed log\u016f']);\n rows.push(['Vygenerov\u00e1no',new Date().toLocaleString('cs-CZ')]);\n rows.push([]);\n rows.push(['VSTUPY']);\n rows.push(['Parametr','Hodnota']);\n rows.push(['R\u00e1mec',s.regulationLabel]);\n rows.push(['Zp\u016fsob zad\u00e1n\u00ed objemu',s.mode==='simple'?'Odhad z prost\u0159ed\u00ed':'Zn\u00e1m\u00fd denn\u00ed objem']);\n rows.push(['Pr\u016fm\u011brn\u00e1 velikost ud\u00e1losti (bajty)',s.eventSize]);\n rows.push(['Doba uchov\u00e1v\u00e1n\u00ed (dny)',s.retention]);\n rows.push(['Rychl\u00e9 \/ okam\u017eit\u011b dostupn\u00e9 \u00falo\u017ei\u0161t\u011b (dny)',s.hot]);\n rows.push([]);\n rows.push(['ROZPIS ZDROJ\u016e']);\n rows.push(['Zdroj','Po\u010det','EPS na zdroj','Celkov\u00e9 EPS \/ hodnota']);\n s.breakdown.forEach(r=>rows.push(r));\n rows.push([]);\n rows.push(['V\u00ddSLEDKY']);\n rows.push(['Parametr','Hodnota']);\n rows.push(['Objem za den (GB)',s.gbDay]);\n rows.push(['Objem rychl\u00e9ho \u00falo\u017ei\u0161t\u011b (GB)',s.hotGb]);\n rows.push(['Celkov\u00e1 odhadovan\u00e1 kapacita \u00falo\u017ei\u0161t\u011b (GB)',s.totalGb]);\n rows.push(['Celkov\u00e1 odhadovan\u00e1 kapacita \u00falo\u017ei\u0161t\u011b (TB)',s.totalGb\/1024]);\n rows.push([]);\n rows.push(['Pozn\u00e1mka: uveden\u00e9 doby uchov\u00e1v\u00e1n\u00ed jsou b\u011b\u017en\u011b citovan\u00e1 doporu\u010den\u00ed pro pl\u00e1nov\u00e1n\u00ed, nikoli pr\u00e1vn\u00ed minimum. Ov\u011b\u0159te platn\u00e9 povinnosti s pr\u00e1vn\u00edm nebo compliance odd\u011blen\u00edm.']);\n const ws=XLSX.utils.aoa_to_sheet(rows);ws['!cols']=[{wch:42},{wch:22},{wch:18},{wch:18}];\n const wb=XLSX.utils.book_new();XLSX.utils.book_append_sheet(wb,ws,'V\u00fdpo\u010det uchov\u00e1v\u00e1n\u00ed');\n XLSX.writeFile(wb,'logmanager-vypocet-doby-uchovavani-logu.xlsx',{compression:true});\n}\n$('lm-regulation').addEventListener('change',applyRegulation);\nmodeButtons.forEach(b=>b.addEventListener('click',()=>setVolMode(b.dataset.mode)));\ndocument.querySelectorAll('#lm-employees,#lm-servers,#lm-devices,#lm-event-size-simple,#lm-daily-gb,#lm-retention-days,#lm-hot-days').forEach(el=>el.addEventListener('input',calculate));\n$('lm-download').addEventListener('click',downloadXlsx);\napplyRegulation();\n})();\n<\/script>\n<\/body><\/html>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kalkula\u010dka doby uchov\u00e1v\u00e1n\u00ed log\u016f Kalkula\u010dka doby uchov\u00e1v\u00e1n\u00ed log\u016f Zjist\u011bte b\u011b\u017en\u011b uv\u00e1d\u011bnou dobu uchov\u00e1v\u00e1n\u00ed log\u016f podle GDPR,<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"class_list":["post-7945","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/pages\/7945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/comments?post=7945"}],"version-history":[{"count":3,"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/pages\/7945\/revisions"}],"predecessor-version":[{"id":7955,"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/pages\/7945\/revisions\/7955"}],"wp:attachment":[{"href":"https:\/\/logmanager.com\/cs\/wp-json\/wp\/v2\/media?parent=7945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}