Elasticsearch gem - API call format
You need to wrap all of those parameters in a body
element:
@data2 = @esearch.search body: { query: {term:{"@message" => "drop"}}, size:'100', fields:'["@message", "@timestamp"] }
You need to wrap all of those parameters in a body
element:
@data2 = @esearch.search body: { query: {term:{"@message" => "drop"}}, size:'100', fields:'["@message", "@timestamp"] }