This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Retrieve Specific Line of a Log File

#need to get the last line of a log file?

#what about the last 2 lines?

#or how about the second to last line?

#And what if I only want the last 8 characters of that line?

Flexible Powershell to grab specific lines of the log file

retieveSpecificLine.ps1