LoginSignup
1
1

More than 5 years have passed since last update.

listener.logから分単位の要求数を集計する

Last updated at Posted at 2012-09-12

タイトルの通り、集計したかったので作成しました。

Listenerのログを集計.ps1
$ar=@{}

Get-Content D:\listener.log | ?{  $_ -match "2012 \d+:\d+:\d+ \*" } | 
%{
    $hm = $_.Split(" ")[2].Substring(0,5)
    $ar."$hm" += 1
}

$ar.getEnumerator() | Sort-Object  Name
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1