Windows Troubleshooting Guide
Important File and Log Locations
File | Location | Purpose |
---|---|---|
Axon Agent Log | C:\var\logrhythm\lragent.log | Log file for Axon Agent, containing logs related to Agent installation and running status. |
FluentD Log | C:\opt\td-agent\td-agent.log | Log file for FluentD, check here for error/info logs. |
FluentD Supervisor Log | C:\opt\td-agent\td-agent-supervisor.log | Additional log file for FluentD; shows current running config, plugin versions and startup command. |
FluentD Config | C:\opt\td-agent\etc\td-agent\td-agent.conf | Config file for FluentD. Contains all settings for collectors, output, filtering and buffering. This file is automatically overwritten by Axon based on selections made in the UI. Manual changes will not be preserved if the Axon Agent service is running. |
Axon Agent General Troubleshooting Tips for Windows
Determine the Axon Agent's Running Status
Check the following locations to determine the Axon Agent's status:
- Check the Windows services.msc page for the "LogRhythm Axon Agent" service. It should be in "Running" status, with a Startup Type value of "Automatic (Delayed start)".
- Check Windows task manager; you should see 2 "Ruby" processes running if the Agent was successfully able to start FluentD.
- Tail the FluentD Log, FluentD Supervisor Log, and Axon Agent Log from the Important Log and File Locations table. Check these logs for errors.
Not Collecting Any Logs
In the event that no logs are being collected, check the following items:
Check that the time on your Agent machine matches the time you are searching in the UI.
It is recommended to widen the search time window in the past and future.
- Check to make sure LogrhythmAgentSvc is running in the machine’s Services window:
- Navigate to C:\opt\logrhythm\conf and open the json file. Verify that the sipUrl field is correct:
Navigate to C:\opt\logrhythm\conf and verify that the database (db) file exists, and that the size is 64 KB.
If the file exists but is only 32 KB, allow a minute or so to pass.
If the file is still 32 KB after a minute, the enrollment key for this agent is broken (see the Authorization Problems section below).
Navigate to C:\opt\logrhythm\conf and verify that pidfile and fluent.pidfile are present.
If so, verify that the IDs in those files match the running process's PID in the task manager details.Task Manager should show two instances of exe running, two instances of ruby.exe running for FluentD, and one instance of lr-agent.exe running
- Navigate to C:\opt\td-agent\etc\td-agent and verify that the plugins folder exists, and that it contains an RB file.
Navigate to C:\opt\td-agent\etc\td-agent and verify that td-agent.conf exists:
If the file doesn’t exist, restart the LogrhythmAgentSvc and wait five minutes. If the file still doesn’t exist, the configuration for the agent is broken (see the Authorization Problems section below).
- Navigate to C:\var\logrhythm and open the latest Agent log:
If the last log message is Enrolling… but there is no subsequent log message detailing the Agent ID, the enrollment key for this agent is broken (see the Authorization Problems section below).
Verify that there are no errors in the log since the last LogrhythmAgentSvc startup? - If the log isn’t helpful, follow the steps below:
- In the Agents page of the Axon UI, click on the Agent you are using to see the Agent details.
- Use the Edit Agent button to set the Log Level to "Debug."
- Navigate back to C:\var\logrhythm and open the latest Agent log.
- At the debug level, you are looking for several key messages (if these aren’t all appearing, see the Authorization Problems section below):
- “Configuration: <json payload>”
- “Writing to file”
- “Restarting fluentd”
Expected Logs Not Being Collected
If the logs you're expecting aren't being collected, do the following:
- In the Axon UI, verify that the Agent Profile you used to generate this bundle has the collectors you expect.
Check that the time on your Agent machine matches the time you are searching in the UI.
It is recommended to widen the search time in the past and future.
- Navigate to C:\opt\td-agent\etc\td-agent and open td-agent.conf.
Verify that the items in here match what you expect based on your profile.
The conf file has the collector IDs associated with this Agent (for example, Syslog).
- Verify that the collectors in the UI match as expected.
- If there is a syslog collector, verify that the Windows Defender Firewall (in advanced settings) is allowing inbound syslog traffic.
You can look for the named rule you created when setting it up, or sort by port number to find the port you are using. - Verify that the machine flat files exist as outlined in C:\opt\td-agent\etc\td-agent\td-agent.conf
- If there is a syslog collector, verify that the Windows Defender Firewall (in advanced settings) is allowing inbound syslog traffic.
- If only the Syslog collector logs aren't showing up in the Axon UI:
- Change the Syslog collector Log Level to "Debug" in the Edit Agent Profile form.
- Open the C:\opt\td-agent\td-agent-0.log file.
If there is a log containing this message, this means that you have more than one listener on the configured port. Windows only allows one listener per port. This is likely to happen if the LR7 Sysmon Agent is also configured on the machine to collect syslogs.
CODEunexpected error error_class=Errno::EADDRINUSE error="Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2)"
- Complete one of these solutions:
- Turn off other listener.
- Configure collection on a different port (requires configuring your devices producing logs to send to the new port, as well as changing the port number in the Edit Agent Profile form in the Syslog collector details).
- Change the Syslog collector Log Level to "Debug" in the Edit Agent Profile form.
Authorization Problems
If you are encountering authorization problems, try the following steps:
- Verify that the agent can actually reach the provided URL, and ensure that the Windows Defender Firewall (or other firewall software) is open for outbound connections on port 443.
The Agent never accepts inbound connections, only outbound. - Navigate to C:\opt\logrhythm\conf\lragent_config.json and confirm that the tenant ID is correct.
Subsequent steps to diagnose authorization problems rely on non-UI actions against the LogRhythm Axon API.
In this event, it is recommended to contact LogRhythm Customer Support.
Specific Errors and Resolutions
After Uninstalling the Windows Axon Agent, the C:\Opt and C:\Var folders are Still Present
Problem
During uninstallation, if the LogRhythm Axon Agent service is left running, the opt and var folders will not be deleted. If the agent service is stopped before uninstall, those folders are properly deleted.
Resolution
If the Axon Agent has not yet been uninstalled, do the following:
- Manually stop the "LogRhythm Axon Agent" service in services.msc.
- Uninstall the Axon Agent as usual through the Add or Remove Programs menu.
The Opt and Var folders will now be properly deleted during uninstallation. - Reboot your machine.
If the Axon Agent has already been uninstalled and the opt and var folders remain on the C:\ drive, manually delete the Opt and Var folders from the C:\ drive.
The LogRhythm Axon Agent Service Does Not Stop When Manually Stopped Through services.msc
Problem
If the Agent service is stopped during active enrollment, it may hang or fail to cleanly stop.
Resolution
Give the Axon Agent 5-10 minutes post-install to enroll and download a configuration before stopping the service.
After Uninstalling the Windows Axon Agent, the LogRhythm Axon Agent Service is Still Visible in the services.msc List
Problem
After uninstallation, the LogRhythm Axon Agent service may not be removed from the Services list, but instead moved to “disabled” status.
Resolution
Rebooting the operating system removes the LogRhythm Axon Agent service from the list.