responses
I'm looking at a slightly unusual application logging which has turned out quite challenging to handle with NXLog, as is, and for that I've been experimenting of running PS scripts using NXLog.
In principle, I'd like to know if it is possible to build the following scenario using NXLog Enterprise agent.
Running of PS script (using NXLog) to fetch log files at interval from variable directories and putting them into another (a copy of logs not older than 1 hour, PS script would manage this, but needs to be invoked by NXLog agent).
Reading selected events from the fetched logs and dispatching them to another system (note, this is completed in another scenario already so I know this would work).
Deleting of all logs from the import directory after they have been read. This could be managed with the xm_fileop, I believe.
I have been experimenting of running PS scripts, unsuccesfully so far, but I'm going through the docs and examples to understand how would one execute a (any) script using the NXLog agent.
Any advice will be highly appreciated.
Comments (1)
The process of fetching and deleting is still shaping up and there might be some variation to how I've thought this will be done. In any case, I have a PS script that will copy files from A to B and then I have the NXLog config for reading the events from a local directory. I've only put here the bits that I see relevant in that config:
So from these pieces I'm looking to take things forward.