Using Powershell to search for specific strings in the last x lines of very large log files

前端 未结 3 1127
别那么骄傲
别那么骄傲 2021-01-18 18:13

I have a requirement that I have not found a solution or assistance for on the forums so far...

The issue: I monitor real time systems and these generate a number of

3条回答
  •  逝去的感伤
    2021-01-18 18:46

    PSCX has a cmdlet named Get-FileTail which efficiently gets the last lines of a file and thus avoiding reading the complete file beforehand.

提交回复
热议问题