guyrleech

Get time ranges in log files

Oct 1st, 2025
523
0
Never
12
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.69 KB | Software | 0 0
  1. ## Search log files with lines starting with "2025-10-01T11:18:37.843" like date format to get first and last timestamps to show what time ranges are in the log file to help locate info
  2.  
  3. ls your_log_folder -PipelineVariable file | ForEach-Object { $dates = @( sls '^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d+' -Path $file.FullName ) ; if( $dates.Count -gt 0 ) { [pscustomobject]@{ File = $file.Name ; Start = "$(([datetime]($dates[0].matches[0].value)).ToString('G'))"; End = $(if($dates.Count -gt 1) { "$(([datetime]($dates[-1].matches[0].value)).ToString('G'))" } ); 'Duration(m)' = $(if($dates.Count -gt 1) { ([datetime]$dates[-1].matches[0].value - [datetime]$dates[0].matches[0].value).TotalMinutes } )} } }
Tags: logs
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Rynvimic
    38 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Faxelwy
    20 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=cydimjovmy
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment