触发文件上的任务在特定文件夹中创建/编辑/删除(AWS FSX)

发布于 2025-01-31 03:39:13 字数 368 浏览 3 评论 0原文

我有一个来自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.
enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神经暖 2025-02-07 03:39:13

由于从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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文