log monitor / parse This topic contains 4 replies, has 4 voices, and was last updated by Joseph Monarch 7 months, 2 weeks ago.Viewing 5 posts - 1 through 5 (of 5 total)Author PostsFebruary 8, 2016 at 5:13 am #34978 Nick BrittonParticipantI have a log file of job status that i would like to monitor for failures and if a success comes in within the next four hours to exit and do nothing , but if no success do something.I ahve been working with get-content -tail -wait but i am not seeing how i can keep that looking at new content and do something with what is found.Any thoughts?February 8, 2016 at 7:02 am #34983 Dan PotterParticipantpost your script.February 8, 2016 at 3:32 pm #35015 Yuan LiParticipantI think every time you check the content, if no success, you can just rename it by time, and a new log file within the old name will be created, and next time you just check the new fileFebruary 8, 2016 at 5:40 pm #35020 Nick BrittonParticipantI dont really have a script built yet. I have just been working though some of the steps manually. I am looking to monitor the file in real time. I am really not sure how to go about that. I just thought get-content would be the best option.February 10, 2016 at 2:07 pm #35142 Joseph MonarchParticipantYou can possibly use a Do Until to get you semi real time information. Depending on how big the file is, this could also be a burden on the system.Author PostsViewing 5 posts - 1 through 5 (of 5 total)You must be logged in to reply to this topic.