import{_ as l,o as c,c as i,a as e,b as n,w as r,e as s,d as u,r as o}from"./app.4d248835.js";const d={},p=e("h1",{id:"log-command-outputs",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#log-command-outputs","aria-hidden":"true"},"#"),s(" Log command outputs")],-1),h={href:"https://arthas.aliyun.com/3.x/doc/arthas-tutorials.html?language=en&id=save-log",target:"_blank",rel:"noopener noreferrer"},m=e("code",null,"Log command outputs",-1),_=s(" online tutorial"),v=u(`
TIP
Log command outputs for later analysis
By default, this behavior is turned off. To enable it, execute the command below:
$ options save-result true
NAME BEFORE-VALUE AFTER-VALUE
----------------------------------------
save-result false true
Affect(row-cnt:1) cost in 3 ms.
If the message above is output on the console, then this behavior is enabled successfully.
Log file path
The command execution result will be save in {user.home}/logs/arthas-cache/result.log
. Pls. clean it up regularly to save disk space.