Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从 DNN 的数据库中导出管理员警报。
哪个表包含这个?
DNN 的所有日志都放在 EventLog 表中,您需要运行直接数据库查询来访问 eventlog 记录
SELECT * FROM [dbo].[EventLog] WHERE LogTypeKey = 'ADMIN_ALERT'
它是桌子EventLog。但请记住,自从 DNN 7(我认为)以来,日志会自动删除。在早期版本中,默认设置是保留所有日志项,因此 EventLog 表有时会包含数百万条记录。
EventLog
因此,如果您想保留某些 logitems 以供导出,您需要修改“Admin > Log Viewer > Edit Log Settings”中的设置。您将看到一行日志类型。您可以编辑您需要更改设置的那个。
它来自 DNN 数据库的“EventLog”表