-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 --->應用程序事件日誌窗口 –
,我收到你現在的日誌。我認爲這是可能的....承擔我 –
謝謝理查德,但我怎麼能夠實時做到這一點 –