Troubleshoot agent issues

Prev Next

Available in Classic and VPC

You might run into the following problems when using Cloud Log Analytics: Find out causes and possible solutions.

Missing agent configuration file

I get a "missing configuration file" error when trying to install the Agent in Windows Server 2019.

Cause

When you install the agent, the filebeat or winlogbeat configuration file is downloaded automatically. If the file download fails, the configuration file is not created and logs are not sent due to the resulting error.

Solution

The solution is as follows:

  1. Check whether the configuration file exists. The configuration file paths are as follows:
    C:\Program Files\cla_windows\winlogbeat-<version>-windows-x86_64\winlogbeat.yml
    
  2. Stop the service and delete the existing installation files if the configuration file does not exist.
    Stop-Service filebeat
    Stop-Service winlogbeat
    cd "C:\Program Files"
    del cla_windows 
    
  3. Rerun the Agent installation script.
    filebeat.yml
    winlogbeat.yml
    
  4. Check the contents of the configuration file. The configuration file must include the collection server address (hosts) for the server's Region. Log collection may fail if the configuration file is empty or does not contain the collection server address.
    Region VPC Classic
    Korea hosts: ["collect.vcla.ntruss.com:5043"] hosts: ["collect.cla.ntruss.com:5043"]
    Singapore hosts: ["sgn-collect.vcla.ntruss.com:5043"] hosts: ["sgn-collect.cla.ntruss.com:5043"]
    Japan hosts: ["jpn-collect.vcla.ntruss.com:5043"] hosts: ["jpn-collect.cla.ntruss.com:5043"]
  5. Start the service after checking the configuration file.
    Start-Service winlogbeat
    Start-Service filebeat
    
  6. Contact Customer Support with the error message and log file if the issue persists after checking all the items above.
Note

If you're still having trouble finding what you need, click on the feedback icon and send us your thoughts and requests. We'll use your feedback to improve this guide.