[{"data":1,"prerenderedAt":308},["ShallowReactive",2],{"navigation_docs":3,"-monitoring-json-logs":102,"-monitoring-json-logs-surround":303},[4,23,37,47,61,79,93],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Set up self-hosting","\u002Fgetting-started\u002Fself-host-setup","1.getting-started\u002F2.self-host-setup",{"title":19,"path":20,"stem":21},"Hosted setup","\u002Fgetting-started\u002Fhosted-setup","1.getting-started\u002F3.hosted-setup",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"Configuration","i-lucide-settings","\u002Fconfiguration","2.configuration",[29,33],{"title":30,"path":31,"stem":32},"Bot configuration","\u002Fconfiguration\u002Fbot-config","2.configuration\u002F1.bot-config",{"title":34,"path":35,"stem":36},"Plugin configuration","\u002Fconfiguration\u002Fplugin-config","2.configuration\u002F2.plugin-config",{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":22},"Commands","i-lucide-terminal","\u002Fcommands","3.commands",[43],{"title":44,"path":45,"stem":46},"Slash commands","\u002Fcommands\u002Fslash-commands","3.commands\u002F1.slash-commands",{"title":48,"icon":49,"path":50,"stem":51,"children":52,"page":22},"Monitoring","i-lucide-activity","\u002Fmonitoring","4.monitoring",[53,57],{"title":54,"path":55,"stem":56},"Expose Prometheus metrics","\u002Fmonitoring\u002Fmetrics","4.monitoring\u002F1.metrics",{"title":58,"path":59,"stem":60},"Write JSON logs","\u002Fmonitoring\u002Fjson-logs","4.monitoring\u002F2.json-logs",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":22},"Telemetry and updates","i-lucide-shield-check","\u002Fprivacy","5.privacy",[67,71,75],{"title":68,"path":69,"stem":70},"Anonymous telemetry","\u002Fprivacy\u002Ftelemetry","5.privacy\u002F1.telemetry",{"title":72,"path":73,"stem":74},"Update check","\u002Fprivacy\u002Fupdate-check","5.privacy\u002F2.update-check",{"title":76,"path":77,"stem":78},"Website analytics","\u002Fprivacy\u002Fwebsite-analytics","5.privacy\u002F3.website-analytics",{"title":80,"icon":81,"path":82,"stem":83,"children":84,"page":22},"Server setup","i-lucide-server-cog","\u002Fserver-setup","6.server-setup",[85,89],{"title":86,"path":87,"stem":88},"Setup panel","\u002Fserver-setup\u002Fsetup-panel","6.server-setup\u002F1.setup-panel",{"title":90,"path":91,"stem":92},"Game features","\u002Fserver-setup\u002Fgame-features","6.server-setup\u002F2.game-features",{"title":94,"icon":95,"path":96,"stem":97,"children":98,"page":22},"FAQ","i-lucide-circle-help","\u002Ffaq","7.faq",[99],{"title":94,"path":100,"stem":101},"\u002Ffaq\u002Ffaq","7.faq\u002F1.faq",{"id":103,"title":58,"body":104,"description":296,"extension":297,"links":298,"meta":299,"navigation":300,"path":59,"seo":301,"stem":60,"__hash__":302},"docs\u002F4.monitoring\u002F2.json-logs.md",{"type":105,"value":106,"toc":291},"minimark",[107,111,116,124,159,162,166,287],[108,109,110],"p",{},"This page is for people who collect logs with a tool. You can skip it otherwise.",[112,113,115],"h2",{"id":114},"turn-json-logs-on","Turn JSON logs on",[108,117,118,119,123],{},"Add this line to the bot ",[120,121,122],"code",{},"config.json",":",[125,126,131],"pre",{"className":127,"code":128,"language":129,"meta":130,"style":130},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\"logFormat\": \"json\"\n","json","",[120,132,133],{"__ignoreMap":130},[134,135,138,142,146,148,152,154,156],"span",{"class":136,"line":137},"line",1,[134,139,141],{"class":140},"sMK4o","\"",[134,143,145],{"class":144},"sfazB","logFormat",[134,147,141],{"class":140},[134,149,151],{"class":150},"sTEyZ",": ",[134,153,141],{"class":140},[134,155,129],{"class":144},[134,157,158],{"class":140},"\"\n",[108,160,161],{},"The bot then writes one JSON object per line instead of the colored window output.",[112,163,165],{"id":164},"fields","Fields",[167,168,169,182],"table",{},[170,171,172],"thead",{},[173,174,175,179],"tr",{},[176,177,178],"th",{},"Field",[176,180,181],{},"Meaning",[183,184,185,196,223,248,268,278],"tbody",{},[173,186,187,193],{},[188,189,190],"td",{},[120,191,192],{},"time",[188,194,195],{},"Time of the message in UTC.",[173,197,198,203],{},[188,199,200],{},[120,201,202],{},"level",[188,204,205,208,209,208,212,208,215,218,219,222],{},[120,206,207],{},"info",", ",[120,210,211],{},"warn",[120,213,214],{},"error",[120,216,217],{},"success"," or ",[120,220,221],{},"debug",".",[173,224,225,230],{},[188,226,227],{},[120,228,229],{},"module",[188,231,232,233,208,236,208,239,208,242,218,245,222],{},"The part of the bot that wrote it, for example ",[120,234,235],{},"bot",[120,237,238],{},"mute",[120,240,241],{},"metrics",[120,243,244],{},"telemetry",[120,246,247],{},"updates",[173,249,250,255],{},[188,251,252],{},[120,253,254],{},"process",[188,256,257,260,261,208,264,267],{},[120,258,259],{},"gateway",", or ",[120,262,263],{},"cluster-0",[120,265,266],{},"cluster-1"," and so on.",[173,269,270,275],{},[188,271,272],{},[120,273,274],{},"msg",[188,276,277],{},"The message. Tokens and secrets are hidden.",[173,279,280,284],{},[188,281,282],{},[120,283,214],{},[188,285,286],{},"Only present when there is extra detail or an error. Secrets are hidden here too.",[288,289,290],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":130,"searchDepth":292,"depth":292,"links":293},2,[294,295],{"id":114,"depth":292,"text":115},{"id":164,"depth":292,"text":165},"Make the bot write machine readable log lines for log tools such as Loki.","md",null,{},true,{"title":58,"description":296},"XPnNcXomx2jpAY5dKMsSHkrKSpgIxKjXc6gR_v6GY5M",[304,306],{"title":54,"path":55,"stem":56,"description":305,"children":-1},"Optional statistics about your bot for monitoring tools such as Prometheus and Grafana.",{"title":68,"path":69,"stem":70,"description":307,"children":-1},"What the DiscordMute bot shares about its usage, what it never shares and how to turn it off.",1793322111107]