Wednesday, November 27, 2024

How to get only a subset from a 2 GB big logfile?

Abstract: You installed Exchange 2016 after it was running for a longer time you realized that the logfiles where growing and at the end you had a 2 GB logfile per day which you couldnĀ“t open in notepad.

To read the logfiles you could use the following powershell 3 command:

Get-Content yourfile.log -Tail 500 > C:\temp\tailed.log

With tail you specifies the number of lines from the end of a file which will when IIS logs are used contain the last entries.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

35FollowersFollow
- Advertisement -

Latest Articles