--- title: "Install server log collection agent" slug: "analytics-cloudloganalytics-changeserverlogsetting-agent" updated: 2026-09-17T10:05:41Z published: 2026-09-17T10:05:41Z canonical: "api.ncloud-docs.com/analytics-cloudloganalytics-changeserverlogsetting-agent" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Install server log collection agent 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 - If you want to know how to set the log collection settings and how to check the `configKey`, see the following: - VPC environment: [Set server log collection](/docs/en/analytics-cloudloganalytics-changeserverlogsetting-vpc-server) - Classic environment: [Set server log collection](/docs/en/analytics-cloudloganalytics-changeserverlogsetting-classic-server) - For more information on how to install the server log collection agent, see the [Cloud Log Analytics User Guide](https://guide.ncloud-docs.com/docs/en/cla-use-management#2%EB%A1%9C%EA%B7%B8%EC%88%98%EC%A7%91Agent%EC%84%A4%EC%B9%98). ### 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}")) ```