Help for this page

Select Code to Download


  1. or download this
    use strict; use warnings; use feature 'say';
    use Data::Dumper; $Data::Dumper::Indent = $Data::Dumper::Sortkeys = 1;
    ...
    } # end sub
    
    __END__
    
  2. or download this
    for my $hit ( map { $_->{'_source'} } @{ $results->{'hits'}->{'hits'} 
    +} ) {
        $interesting{ $hit->{'request'} }->{ $hit->{'clientip'} }++;
    }
    
  3. or download this
    $VAR1 = {
      '/' => {
    ...
        '192.168.1.1' => 2
      }
    };
    
  4. or download this
    [ ... ]
    
    ...
            say "\t$ip made $interesting{ $resource }->{ $ip } requests";
        }
    }
    
  5. or download this
    Resource: /
        192.168.1.1 made 1 requests
        192.168.1.2 made 1 requests
    Resource: /index.php
        192.168.1.1 made 2 requests