Hello Dunter!
A few questions to try to understand the situation:
> it was working for about 8 hours and then stoppedDo you mean it worked only 8 hours since your previous message on May 4? Or did you set up a new configuration recently and this is the one that stopped working?
I understand that you are no longer seeing events coming from this agent's
/var/www/html/storage/logs/device-log-%Y-%m-%d.log files. But, besides that, the agent is working correctly, right? it is active and receiving other types of events?
How are you seeing that it stopped? are you using the dashboard? alerts.json? archives.json?
Can we be certain that the agent has new events to read from those files?
> I don't have access to the machine that the desired logs are on - is there an API way to pull ossec.log from the agent?
So no way to access the machine remotely?
Unfortunately, we can't pull the agent's log through the API.
However, we can use the API to pull some other information from the agent.
The module logcollector has a limit on the number of files that it can monitor. Once this number is reached it does not add new files to its list. This limit is one of the
module's internal configurations. Maybe the problem could be related to this.
We can pull the following info from the agent and see if it gives us any clue on what is going on:
- Get the active configuration for logcollector->localfile and logcollector->internal:
- Get the logcollector stats:
Please, try to gather this information and send it back. Of course, if you think there is any sensitive information in that data please obfuscate it before sharing it.
Regards!