Help for this page

Select Code to Download


  1. or download this
    my $es = Search::Elasticsearch->new(
            nodes       => 'logs.server.local:9200',
            cxn_pool => 'Sniff', ##  "web servers and Elasticsearch server
    +s are on the same network"
    ...
      size => 3,    
      timeout => 60,    
    );
    
  2. or download this
    my $results = $es->search(
    body => {
    ...
      size => 3,    
      timeout => 60,    
    );