Install server log collection agent

Prev Next

Available in Classic and VPC

This section describes how to install the log collection agent on the server to actually collect the server's logs through Cloud Log Analytics after completing the log collection settings. To install the agent, you must run the installation command using the configKey issued after completing the log collection settings.

Note

VPC environment

The command to install the server log collection agent in the VPC environment is as follows.

  • Linux server
    curl -s http://cm.vcla.ncloud.com/setUpClaVPC/{configKey} | sudo sh
    
  • Windows server
    Invoke-Expression $((New-Object System.Net.WebClient).DownloadString("http://cm.vcla.ncloud.com/setUpwinClaVPC/{configKey}"))
    

Classic environment

The command to delete the server log collection agent in the Classic environment is as follows.

  • Linux server
    curl -s http://cm.cla.ncloud.com/setUpCla/{configKey} | sudo sh
    
  • Windows server
    Invoke-Expression $((New-Object System.Net.WebClient).DownloadString("http://cm.cla.ncloud.com/setUpwinCla/{configKey}"))