lib/splunk_search.rb
# tabluate results, only runs if complete?
# returns an array with results in each array index
tabluate results, only runs if complete.
returns an array with results in each array index
tabluate results only runs if complete . returns an array with results in each array index
def results
        numOfSearches = numEvents / @OFFSET 
        result = Array.new
        if (complete?)
            for i in 0..numOfSearches
                result.push( @client.get_request("/services/search/jobs/#{@sid}/results", {'output_mode' => @OUTPUT_MODE, 'count' => @OFFSET, 'offset' => (@OFFSET * i)}))
            end
        end
        result
    end
def results numOfSearches = numEvents / @OFFSET result = Array . new if ( complete? ) for i in 0 .. numOfSearches result . push ( @client . get_request ( "/services/search/jobs/#{@sid}/results" , { 'output_mode' => @OUTPUT_MODE , 'count' => @OFFSET , 'offset' => ( @OFFSET * i ) } ) ) end end result end
tabluate results, only runs if complete?
tabluate results only runs if complete?
#the number of searches we must make to return all values