def UploadClientLogFiles(client):
  managed_installs_dir = munkicommon.pref('ManagedInstallDir')
  log_file_paths = [
      os.path.join(managed_installs_dir, 'InstallInfo.plist'),
      os.path.join(managed_installs_dir, 'ManagedInstallReport.plist'),
      os.path.join(managed_installs_dir, 'Logs', 'ManagedSoftwareUpdate.log'),
      '/Users/Shared/.SelfServeManifest',
      '/var/log/system.log',
      '/var/log/debug.log',
      '/var/log/install.log',
  ]
  for log_file_path in log_file_paths:
    if os.path.exists(log_file_path):
      client.UploadFile(log_file_path, 'log')

  # Upload output of 'ps -ef'.
  return_code, stdout, _ = Exec(['/bin/ps', '-ef'])
  if not return_code:
    path = os.path.join(
        tempfile.mkdtemp(prefix='munki_ps_ef_output_', dir='/tmp'),
        'ps_ef_output')
    f = open(path, 'w')
    f.write(stdout)
    f.close()
    client.UploadFile(path, 'log')
Uploads the Munki client log files to the server.
dataset/ETHPy150Open google/simian/src/simian/mac/client/flight_common.py/UploadClientLogFiles