$fiddle.DateTime = $fiddle.DateTime -replace '^(\d )\/(\d )\/(\d )', '$3-$2-$1' #correct date format to something that PS can auto convert to a DateTime. # I don't really have a need for this but it may be helpful if debugging to know when lines are not processed / have a gap in your results. ![]() Get-Content -Path $p | ConvertTo-FzLogEntry if that assumption's wrong we may have to amend to string Logging events to file for debugging, saved at custom location. $ClientIp # I've used version assuming it's always IPv4. FileZilla is a free and open-source, cross-platform FTP application, consisting of FileZilla. ![]() I've created a script to parse logs into a form that's simpler to work with / sharing here for others with similar requirements to the OP.įor the specific question, here's how this code would be used: ]$logs = # you could add more / get these via Get-ChildItem / etc
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |