-2
A
回答
0
你的意思是事件源? PowerShell的将是 则New-EventLog命令发现这里提供的更详细的编辑后
。
你想要什么的基本原理是查询日志文件并将找到的行写入事件日志。这就好比做如下:
#Get the content of the error log, gets the top 10 lines ONLY!!
$GetLog = Get-Content -Path D:\Errorlog.txt -totalcount 10
#Now take the data found and write it to the event log under the source and log below
Write-EventLog -LogName "Application" -Source "My Application" -Eventid 1001
-EntryType Error -Message "$Getlog" -Category 1
相关问题
- 1. Windows应用程序日志事件正在'错过'用我的事件日志
- 2. 将日志转发到CloudWatch日志
- 3. Windows事件日志与文本日志
- 4. 应用程序的事件日志
- 5. ASP.NET应用程序未记录到Windows事件日志中
- 6. 将应用程序日志重定向到docker日志
- 7. Windows Azure日志记录:WADLogsTable作为应用程序日志?
- 8. 无法查询Windows日志'转发事件'日期
- 9. 将日志控制台输出到日志文件Java日志程序
- 10. 订阅Windows事件日志?
- 11. Windows窗体事件日志
- 12. Windows事件日志权限
- 13. 发送应用程序崩溃日志/常规应用程序日志
- 14. 将事务日志刷新到日志文件中的条件
- 15. 如何将Java应用程序日志记录到Windows事件查看器?
- 16. 写入/读取到Windows事件日志
- 17. 何时登录到Windows事件日志?
- 18. 写事件日志不写入应用程序日志(注册优先源后)
- 19. 应用程序日志
- 20. Windows源事件日志中的Windows事件日志中的超压警告
- 21. Windows事件日志 - 事件ID 0
- 22. 将消息写入应用程序事件日志
- 23. Rails日志记录到Apache日志而不是应用日志
- 24. 在windows事件日志中写入activemq日志
- 25. 用PHP读取Windows事件日志
- 26. 写入Windows事件日志使用PowerShell
- 27. 事件日志(事件日志创建事件)
- 28. Kafka将单个日志事件行聚合到组合日志事件中
- 29. 将std应用程序日志中的SQL Server事件重定向到一个自定义日志中
- 30. Android日志事件
我需要显示在事件日志窗口中的应用 myapplication.log --->应用程序事件日志窗口 –
,我收到你现在的日志。我认为这是可能的....承担我 –
谢谢理查德,但我怎么能够实时做到这一点 –