触发文件上的任务在特定文件夹中创建/编辑/删除(AWS FSX)
我有一个来自AWS FSX的网络路径(已经允许从文件夹的Advance Security设置进行审核)。 我需要从我的服务器(Windows)上记录该网络路径上的创建/删除/编辑。
我尝试使用Event ID 4663上的Windows Event Viewer创建自定义视图。
但问题是,它也显示了其他文件夹的日志。 我想根据该自定义事件视图过滤网络路径中的事件并触发Windows任务。
I have a network path from AWS FSx (Already allowed Auditing from Folder's Advance Security Settings).
I need to log file Create/Delete/Edit on that network path from my server(Windows).
I tried to create a Custom view on Windows Event Viewer with event ID 4663.
But the problem is, that it shows logs from other folders as well.
I want to filter only the events from my network path and trigger a windows task, based on that Custom event view.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于从AWS捕捉详细的事件有点复杂,因此我更改了完成任务的方法。
我创建了一个背景工人来跟踪给定文件夹中的所有文件更改
使用.net 目录 , file a href =“ https://learn.microsoft.com/en-us/dotnet/api/system.io.io.filesystemwatcher?view=net-7.0“ rel =“ nofollow noreferrer”>“ nofollow noreferrer”> filesystemwatcher 类。
As it was a bit complicated to catch the detailed event from AWS, I changed the approach to accomplish my task.
I created a background worker to track all file changes in the given folder
using .Net Directory, File and FileSystemWatcher classes.