Skip to content

Commit

Permalink
Changed default Logs.Collect value from False/n to True/y (#2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinclark19a authored Dec 15, 2021
1 parent df113e0 commit 838b747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ ResourceDisk.EnableSwap=n
ResourceDisk.EnableSwapEncryption=n
ResourceDisk.SwapSizeMB=0
Logs.Verbose=n
Logs.Collect=n
Logs.Collect=y
Logs.CollectPeriod=3600
OS.AllowHTTP=n
OS.RootDeviceScsiTimeout=300
Expand Down Expand Up @@ -461,10 +461,12 @@ leverages the system logrotate functionality to rotate logs.
#### __Logs.Collect__

_Type: Boolean_
_Default: n_
_Default: y_

If set, agent logs will be periodically collected and uploaded to a secure location for improved supportability.

NOTE: This feature is only supported ubuntu 16.04+; this flag will not take effect on any other distro.

#### __Logs.CollectPeriod__

_Type: Integer_
Expand Down
4 changes: 2 additions & 2 deletions azurelinuxagent/common/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def load_conf_from_file(conf_file_path, conf=__conf__):
"OS.CheckRdmaDriver": False,
"Logs.Verbose": False,
"Logs.Console": True,
"Logs.Collect": False,
"Logs.Collect": True,
"Extensions.Enabled": True,
"Provisioning.AllowResetSysUser": False,
"Provisioning.RegenerateSshHostKeyPair": False,
Expand Down Expand Up @@ -262,7 +262,7 @@ def get_logs_console(conf=__conf__):


def get_collect_logs(conf=__conf__):
return conf.get_switch("Logs.Collect", False)
return conf.get_switch("Logs.Collect", True)


def get_collect_logs_period(conf=__conf__):
Expand Down

0 comments on commit 838b747

Please sign in to comment.